Apache2 + Tomcat 5 + JK2 를 사용한 로드밸런싱과 세션 복제 클러스터링 사이트 구축

Similar documents
Microsoft Word - Solaris 8에_Tomcat _Apache_2.0.52[mod_jk2_module]_설치.doc

chapter1,2.doc

PowerPoint 프레젠테이션

J2EE & Web Services iSeminar

Corporate PPT Template

<C0CCBCBCBFB52DC1A4B4EBBFF82DBCAEBBE7B3EDB9AE2D D382E687770>

ISS 웹서버연동부록 C. 쓰리래빗츠와웹서버를연동하려면아파치톰캣커넥터를사용합니다. 쓰리래빗츠가아파치톰캣을이용 하기때문입니다. 윈도우 8 을기준으로설명합니다. 윈도우버전에따라 IIS 관리자화면이다릅니다. C.1 isapi_redirect.dll 설치 1 설치에필요한파일을

PowerPoint 프레젠테이션

초보자를 위한 ASP.NET 2.0

PowerPoint 프레젠테이션

J2EE Concepts

untitled

Sena Device Server Serial/IP TM Version

1

Web Application Hosting in the AWS Cloud Contents 개요 가용성과 확장성이 높은 웹 호스팅은 복잡하고 비용이 많이 드는 사업이 될 수 있습니다. 전통적인 웹 확장 아키텍처는 높은 수준의 안정성을 보장하기 위해 복잡한 솔루션으로 구현

Introduction to SOA

Intro to Servlet, EJB, JSP, WS

SMB_ICMP_UDP(huichang).PDF

59

(Microsoft Word - yum\300\270\267\316apache_tomcat\277\254\265\277-\301\244\307\366\310\243.doc)

untitled

No Slide Title


< FC8A8C6E4C0CCC1F620B0B3B9DF20BAB8BEC8B0A1C0CCB5E5C3D6C1BE28C0FAC0DBB1C7BBE8C1A6292E687770>

untitled

untitled

Microsoft PowerPoint - Smart CRM v4.0_TM 소개_ pptx

Microsoft PowerPoint - [Practice #1] APM InstalI.ppt

Interstage5 SOAP서비스 설정 가이드

PowerPoint 프레젠테이션

Backup Exec

1217 WebTrafMon II

untitled

Microsoft Word - Solaris 9에_Tomcat _설치.doc

PCServerMgmt7

1부

Apache HTTPD 설치 보고서

JavaGeneralProgramming.PDF

MySQL-Ch05

데이터베이스_오라클_부록(최종).indd

Voice Portal using Oracle 9i AS Wireless

uFOCS

KYO_SCCD.PDF

교육2 ? 그림

ORANGE FOR ORACLE V4.0 INSTALLATION GUIDE (Online Upgrade) ORANGE CONFIGURATION ADMIN O

Orcad Capture 9.x

opennaru

5-03-Â÷¼¼´ëÀ¥Iš

Microsoft Word - KSR2014S042

PWR PWR HDD HDD USB USB Quick Network Setup Guide xdsl/cable Modem PC DVR 1~3 1.. DVR DVR IP xdsl Cable xdsl Cable PC PC DDNS (

블로그_별책부록

Interstage4 설치가이드

을풀면된다. 2. JDK 설치 JDK 는 Sun Developer Network 의 Java( 혹은 에서 Download > JavaSE 에서 JDK 6 Update xx 를선택하면설치파일을

vm-웨어-01장

untitled

Analytics > Log & Crash Search > Unity ios SDK [Deprecated] Log & Crash Unity ios SDK. TOAST SDK. Log & Crash Unity SDK Log & Crash Search. Log & Cras

Cache_cny.ppt [읽기 전용]

슬라이드 1

Microsoft Word - Windows_apahce_php_CUBRID2008

ARMBOOT 1

14-Servlet

APM-Install-tools_ hwp

2

BEef 사용법.pages

6강.hwp

Copyright 2012, Oracle and/or its affiliates. All rights reserved.,,,,,,,,,,,,,.,..., U.S. GOVERNMENT END USERS. Oracle programs, including any operat

Apache & Tomcat 설치및연동이남규 2/34 Table of contents 1 Introduction System Construction Java Development Kit (JDK) JDK

초보자를 위한 C++

Microsoft PowerPoint - web-part03-ch19-node.js기본.pptx

USB USB DV25 DV25 REC SRN-475S REC SRN-475S LAN POWER LAN POWER Quick Network Setup Guide xdsl/cable Modem PC DVR 1~3 1.. DVR DVR IP xdsl Cable xdsl C

MySQL-Ch10

DocsPin_Korean.pages

컴퓨터과학과 교육목표 컴퓨터과학과의 컴퓨터과학 프로그램은 해당분야 에서 학문적 기술을 창의적으로 연구하고 산업적 기술을 주도적으로 개발하는 우수한 인력을 양성 함과 동시에 직업적 도덕적 책임의식을 갖는 IT인 육성을 교육목표로 한다. 1. 전공 기본 지식을 체계적으로

<4D F736F F F696E74202D E20C0CEC5CDB3DD20C0C0BFEB20B9D720BCADBAF1BDBA20B1E2BCFA E >


I T C o t e n s P r o v i d e r h t t p : / / w w w. h a n b i t b o o k. c o. k r

단계

Solaris Express Developer Edition

슬라이드 1

초보자를 위한 ASP.NET 21일 완성


본문서는 초급자들을 대상으로 최대한 쉽게 작성하였습니다. 본문서에서는 설치방법만 기술했으며 자세한 설정방법은 검색을 통하시기 바랍니다. 1. 설치개요 워드프레스는 블로그 형태의 홈페이지를 빠르게 만들수 있게 해 주는 프로그램입니다. 다양한 기능을 하는 플러그인과 디자인

CD-RW_Advanced.PDF

Copyright 2004 Sun Microsystems, Inc Network Circle, Santa Clara, CA U.S.A..,,. Sun. Sun. Berkeley BSD. UNIX X/Open Company, Ltd.. Sun, Su

Sun Java System Messaging Server 63 64

품질검증분야 Stack 통합 Test 결과보고서 [ The Bug Genie ]

텀블러514

03여준현과장_삼성SDS.PDF

PowerPoint 프레젠테이션

Model Investor MANDO Portal Site People Customer BIS Supplier C R M PLM ERP MES HRIS S C M KMS Web -Based

1

K7VT2_QIG_v3

LXR 설치 및 사용법.doc

untitled

Portal_9iAS.ppt [읽기 전용]

SQL Developer Connect to TimesTen 유니원아이앤씨 DB 기술지원팀 2010 년 07 월 28 일 문서정보 프로젝트명 SQL Developer Connect to TimesTen 서브시스템명 버전 1.0 문서명 작성일 작성자

운영자매뉴얼

PowerPoint Presentation

untitled

untitled

Transcription:

Apache2 + Tomcat 5 + JK2 : 2004-11-04 Release Ver. 1.0.0.1 Email : ykkim@cabsoftware.com Apache JK2 ( )., JK2 Apache2 JK2. 3 - JK2, Tomcat -.. 3, Stress ( ),., localhost ip., 2. 2,. Windows XP., Window XP Apache2 + Tomcat5 + JK2. Windows XP Apache_2.0.52-win32-x86-no_ssl.msi (http://ftp.apache-kr.org/httpd/binaries/win32/apache_2.0.52-win32-x86-no_ssl.msi) Jakarta-tomcat-5.0.28.zip (http://ftp.apache-kr.org/jakarta/tomcat-5/v5.0.28/bin/jakarta-tomcat-5.0.28.zip) Jakarta-tomcat-connectors-jk2.0.4-win32-apache2.0.49.zip (http://ftp.apache-kr.org/jakarta/tomcat-connectors/jk2/binaries/win32/jakarta-tomcat-connectors-jk2.0.4-win32- apache2.0.49.zip) Jdk-1_5_0-windows-i586-iftw.exe or j2sdk-1_4_1_02-windows-i586.exe (http://java.sun.com/downloads/index.html) mysql-4.1.7-win.zip Mysql-connector-java-3.0.15-ga.zip (http://dev.mysql.com/downloads/) 1/27

5. JVM. SUN J2SE5.0, JSP 1.4 J2SE5.0. J2SE5.0. J2SE5.0, Window XP JAVA_HOME. 1. 2/27

2. JAVA_HOME J2SE5.0 J2SE1.4, JAVA_HOME Jakarta-tomcat-5.0.28.zip. 2,. 1. C:Apache Group. 2. C:Apache Group, tomcat1. 3. C:Apache Group 3/27

4. tomcat1 3. C:Apache Group, tomcat2. 5. 4/27

6. tomcat2 2. tomcat1 tomcat2. 2. : 1. tomcat1 bin. 2. service.bat. 44,45 SERVICE_NAME PR_DISPLAYNAME. tomcat1. set SERVICE_NAME=Tomcat5 set PR_DISPLAYNAME=Apache Tomcat set SERVICE_NAME=Tomcat51 set PR_DISPLAYNAME=Tomcat1., SERVICE_NAME, PR_DISPLAYNAME. SERVICE_NAME. 5/27

7. tomcat1 service.bat 8. tomcat1 SERVICE_NAME PR_DISPLAYNAME 6/27

3. tomcat1 service.bat tomcat2 service.bat. Tomcat2 SERVICE_NAME PR_DISPLAYNAME Tomcat52 Tomcat2. 9. tomcat2 service.bat 4. 2,3 service.bat. cmd.exe., C:Apache Grouptomcat1bin service.bat install. 7/27

10. 1 5. (->->), Tomcat1. 6. Tomcat1 C:Apache Grouptomcat1bintomcat5w.exe. JVM / /. GUI tomcat1 tomcat51 tomcat5w.exe. tomcat5w.exe //ES//Tomcat51, //ES//, Tomcat51 SERVICE_NAME. tomcat5w.exe Windows service HOW-TO. 8/27

11. tomcat51 tomcat5w.exe 12. tomcat5w.exe, Tomcat1 9/27

13. tomcat5w.exe JVM 7. Tomcat1. Tomcat2. 4,5,6 Tomcat2. 13. Tomcat2 10/27

14. Tomcat52 tomcat5w.exe 15. tomcat5w.exe Tomcat52 8. (->->), Tomcat2. 11/27

16. Tomcat1, Tomcat2 2., JK2 Apache2. TCP, TCP. server.xml, Apache2 JK2 workers2.properties 2. 2.3 server.xml {Tomcat }confserver.xml. 2, Apache2 2., TCP. tomcat1. 1. C:Apache Grouptomcat1confserver.xml. 2. 13 <Server port="8005" shutdown="shutdown" debug="0"> <Server port="11005" shutdown="shutdown" debug="0">. 12/27

3. HTTP Coyote HTTP/1.1 Connector disable. HTTP Apache JK2. List 1. Coyote HTTP/1.1 Connector List 2. Coyote HTTP/1.1 Connector 4. Coyote/JK2 AJP 1.3 Connector port 8009 11009. List 3. Coyote/JK2 AJP 1.3 Connector port 5. JK/JK2 jvmroute,. JK/JK2 Catalina, jvmroute tomcat1. jvmroute JK2 workers2.properties. List 4. List 5. JK/JK2 enable 6. Cluster Cluster enable. Clustering Clustering/Session Replication HOW-TO (http://jakarta.apache.org/tomcat/tomcat-5.0-doc/cluster-howto.html)... setattribute removeattribute. 13/27

17. 18. Cluster enable 14/27

7. tomcat1 server.xml, tomcat2 server.xml. Tomcat2 tomcat1, port jvmroute tomcat2. 8. 13 <Server port="8005" shutdown="shutdown" debug="0"> <Server port="12005" shutdown="shutdown" debug="0">., port. 2. 9. Coyote HTTP/1.1 Connector, Coyote/JK2 AJP 1.3 Connector port 12009. 19. tomcat2 Coyote/JK2 AJP 1.3 Connector 10. JK/JK2 jvmroute,. JK/JK2 Catalina, jvmroute tomcat2. jvmroute JK2 workers2.properties. 15/27

20. JK/JK2 enable 11. tomcat1 Clustering ( 6) tomcat2 Clustering. tcplistenport 4002 tomcat1 4001..,, web.xml <distributable/>. 16/27

21. Cluster, tcplistenport 4002 2 Apache2 JK2.. /,. Apache2 JK2, (L4 L7 ) ( LoadDirector). HTTP JSP/ 2, sticky session. 17/27

22., 22 multicast. EJB JNDI JBoss J2EE. 2.3,. Apache2 JK2. Apache AJP1.3 Connector, HTTP., (HTML, JPG, GIF, SWF, XML) Apache, JSP/., JK2. Apache_2.0.52-win32-x86-no_ssl.msi.. Apache2 C:Apache GroupApache2. 18/27

, IIS, Apache2 80, IIS,. IIS Apache2, Apache2, conf/httpd.conf Listen 80 Listen 8080. 23. Apache Apache2 JK2. JK2. 24. JK2 conf Apache2 (mod_jk2.conf.sample, workers2.properties.sample). Modules Apache2 (mod_jk2.so). mod_jk2 index.html JK2. Apache2, JK2 Apache2. 1. JK2 modules/mod_jk2.so {Apache2 }modules 19/27

. 25. mod_jk2.so Apache2 modules 2. JK2 conf mod_jk2.conf.sample workers2.properties.sample {Apache2 }conf, mod_jk2.conf workers2.properties. 26. Apache2 conf JK2 20/27

3. httpd.conf mod_jk2. Httpd.conf. LoadModule jk2_module modules/mod_jk2.so 27. Apache2 mod_jk2 4. workers2.properties,. [shm] info=scoreboard. Requried for reconfiguration and status with multiprocess servers. file=anonymous # Defines a load balancer named lb. Use even if you only have one machine. [lb:lb] noerrorheader=1 stickysession=1 recovery=60 # Example socket channel, override port and host. [channel.socket:127.0.0.1:11009] port=11009 host=127.0.0.1 graceful=0 tomcatid=tomcat1 group=lb 21/27

[channel.socket:127.0.0.1:12009] port=12009 host=127.0.0.1 graceful=0 tomcatid=tomcat2 group=lb # define the worker1 [ajp13:127.0.0.1:11009] tomcatid=tomcat1 max_connections=120 channel=channel.socket:127.0.0.1:11009 group=lb # define the worker2 [ajp13:127.0.0.1:12009] tomcatid=tomcat2 max_connections=120 channel=channel.socket:127.0.0.1:12009 group=lb # Map the Tomcat examples webapp to the Web server uri space [uri:/*.jsp] group=lb [uri:/servlet/*] group=lb [status:] info=status worker, displays runtime information [uri:/jkstatus/*] info=the Tomcat /jkstatus handler group=status: List 6. 2 workers2.properties workers2.properties, lb stickysession 1(true)., noerrorheader recovery. 22/27

JK2 JK2 Components., List 6 2 channel.socket 2 worker(ajp13), 2.3 server.xml 2 JvmRoute., List6 workers2.properties channel.socket worker IP. List6 JK2 workers2.properties. shm JK2 Components, workers2.properties. 1. shm file anonymouse size anonymous... slots 256. usememory 0. mpm. Apache2 JK2. (Sticky Session ). jsp 2. default.jsp", tomcat1 tomcat2. <html> <body bgcolor="red"> <center> <%= request.getsession().getid() %> <h1> Tomcat1 </h1> </body> </html> List 7. tomcat1 default.jsp 23/27

<html> <body bgcolor="blude"> <center> <%= request.getsession().getid() %> <h1> Tomcat2 </h1> </body> </html> List 8. tomcat2 default.jsp List7 List8 default.jsp., Tomcat1, Tomcat2 Apache2., http://localhost:8080/default.jsp. Sticky Session, tomcat1 ( ), tomcat1., http://localhost:8080/default.jsp tomcat2 ( ).., http://localhost:8080/jkstatus Apache2+JK2. (select, response update) update insert.net.,. 3.,.. ACT(.NET Application Center Test ) HTTP Apache2+JK2+2 tomcat 5, HTTP,,,. 24/27

28. 1 tomcat ( ) - 115 tomcat fail 29. 2 tomcat Apache2 ( ) - 200 25/27

30. 1 tomcat ( ) 31. 2 tomcat Apache2 ( ) 26/27

32. 1 tomcat ( HTTP ) 33. 2 tomcat Apache2 ( HTTP ) Apache2+Tomcat 27/27