Omer Yfhar Posted December 22, 2008 Share Posted December 22, 2008 Hello all I have a big envirument of 5 win2003. each server hold one apache and 4 apache tomcat instanc. There are a lot of mess going on becuse no one knew how to impliment them. they are all in the LAN so security isnt an issu. i saw they are configure to act with proxy + jk in httpd.conf: <Proxy balancer://mycluster> BalancerMember ajp://localhost:8009 route=jvm1 retry=5 BalancerMember ajp://localhost:8109 route=jvm2 retry=5 BalancerMember ajp://localhost:8209 route=jvm3 retry=5 BalancerMember ajp://localhost:8309 route=jvm4 retry=5 </Proxy> <Location /webtop/> Proxypass balancer://mycluster/webtop/ stickysession=JSESSIONID|jsessionid </Location> <Location /whoami/> Proxypass balancer://mycluster/whoami/ stickysession=JSESSIONID|jsessionid </Location> in server.xml: <!-- Define a non-SSL HTTP/1.1 Connector on port 8080 --> <Connector port="8100" maxHttpHeaderSize="8192" maxThreads="2000" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" redirectPort="8443" acceptCount="1000" connectionTimeout="60000" maxKeepAliveRequests="1000" disableUploadTimeout="true" /> <!-- Note : To disable connection timeouts, set connectionTimeout value to 0 --> <!-- Note : To use gzip compression you could set the following properties : compression="on" compressionMinSize="2048" noCompressionUserAgents="gozilla, traviata" compressableMimeType="text/html,text/xml" --> <!-- Define a SSL HTTP/1.1 Connector on port 8443 --> <!-- <Connector port="8443" maxHttpHeaderSize="8192" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" disableUploadTimeout="true" acceptCount="100" scheme="https" secure="true" clientAuth="false" sslProtocol="TLS" /> --> <!-- Define an AJP 1.3 Connector on port 8009 --> <Connector port="8009" enableLookups="false" redirectPort="8443" protocol="AJP/1.3" /> <!-- Define a Proxied HTTP/1.1 Connector on port 8082 --> <!-- See proxy documentation for more information about using this. --> <!-- <Connector port="8082" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" acceptCount="100" connectionTimeout="20000" proxyPort="80" disableUploadTimeout="true" /> my Question, what is the best senario to implement apache NLB to serve apache tomcat. thanks omer yfhar Quote Link to comment Share on other sites More sharing options...
steviewdr Posted December 22, 2008 Share Posted December 22, 2008 You could just do it with DNS round robin. Have both ips resolve to the one hostname. -steve Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.