response goes through load balancer?

View: New views
6 Messages — Rating Filter:   Alert me  

response goes through load balancer?

by Dave-53 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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.

Re: response goes through load balancer?

by Felix Schumacher :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: response goes through load balancer?

by Dave-53 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 <felix.schumacher@...> 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@...
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...



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

Re: response goes through load balancer?

by Christopher Schultz-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dave,

Dave wrote:
| 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?

Google for "round-robin DNS".

Your other option is to use a higher-performing load balancing hardware
appliance.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgkVusACgkQ9CaO5/Lv0PD5gwCgn01+z9T1BW1RwFLGo9zGrdyx
P2MAn0aI/ds1MDTXQNmkBcLWhxYqmxhH
=r6DB
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@...
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: response goes through load balancer?

by Hassan Schroeder-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, May 9, 2008 at 6:51 AM, Christopher Schultz
<chris@...> 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 ------------------------ hassan.schroeder@...

---------------------------------------------------------------------
To start a new topic, e-mail: users@...
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: response goes through load balancer?

by Christopher Schultz-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hassan,

Hassan Schroeder wrote:
| On Fri, May 9, 2008 at 6:51 AM, Christopher Schultz
| <chris@...> 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@...
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...