Re: response goes through load balancer?
On Fri, May 9, 2008 at 6:51 AM, Christopher Schultz [EMAIL PROTECTED] wrote: | there is only one IP for the domain in DNS. How to set up DNS for the | purpose? Google for round-robin DNS. That will only work if you have multiple IPs assigned... -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: response goes through load balancer?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hassan, Hassan Schroeder wrote: | On Fri, May 9, 2008 at 6:51 AM, Christopher Schultz | [EMAIL PROTECTED] wrote: | | | there is only one IP for the domain in DNS. How to set up DNS for the | | purpose? | | Google for round-robin DNS. | | That will only work if you have multiple IPs assigned... Of course. I was assuming that if 1 Apache could not keep up with the traffic, adding another Apache httpd instance to the same box wouldn't make it any better. My guess was that adding another Apache meant setting up another box, which would certainly have its own IP address. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkgkYB0ACgkQ9CaO5/Lv0PA0YACfWFOkUVSwB0naA3cYD6JC1zlU VxYAoKncWKNXh7oikVhVHarHNK4sEAvM =fZBj -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: response goes through load balancer?
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]
Re: response goes through load balancer?
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.
response goes through load balancer?
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. Dave - Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.