Hi Felix,
   
  Thank you for your help. 
  One apache in the front end as load balancer is not sufficient for heavy 
traffic. If I use two apaches in the front, how to use DNS to load balancing 
Apaches?  That is, some requests go to Apache1, and the others go to Apache2.
   
  For example, for the domain:  
    www.mydomain.com
   
  there is only one IP for the domain in DNS. How to set up DNS for the purpose?
   
  For 10 tomcat instances, each Apache has the same 10 workers, or 5 
workers/each apache?
   
  Thanks in advance for further help.
   
  Dave
   
  

Felix Schumacher <[EMAIL PROTECTED]> wrote:
  On Thu, May 8, 2008 6:16 am, Dave wrote:
> Hi, I am using Apache mod JK as load balancer for tomcat instances. Tomcat
> instances are on the different machines with public IP addresses. Will the
> HTTP responses go back to the Apache load balance? If so, it will slow
> down the response. how to instruct tomcat not to send response to Apache?
> Thanks for help.
Hi Dave,

the mod_jk connection will talk to the apache server only. Tomcat and
apache are communicating with AJP, not with HTTP, so the original
web-client would not be able to understand the answers from tomcat
directly.

If your apache server will suffer a slow down by too many
connections/clients, will depend on the kind of connections. Are they
cpu/disk intensive, or will the just saturate your internet network
connection?

You could use two or more apache servers in front of the tomcat servers to
achieve a loadbalancing there. Those apache servers could be loadbalanced
itself by dns ot other means and could be talking directly and
independently with the web-clients.

Since the backend-tomcat instances are encoded in the session id's each
apache would know which request would have to go to which tomcat.

HTH
Felix
>
> Dave
>
>
> ---------------------------------
> Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it
> now.



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



       
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.

Reply via email to