Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Hope in the right place.. So I've loadbalancer(LB) and two Apaches(A1 & A2) underneath. All of them have public IPs. Now my question is; Client requests a website -> request goes to LB -> requets goes to A1. Now I think response goes the same way back trough LB. So with A1 & A2, LB generates output traffic of both Apaches? Is tha correct, or can I force response directly from Apache (A1 or A2) without touching LB for outbound traffic?

Some insight would be grat, tnx.

share|improve this question
up vote 1 down vote accepted

normally the traffic will go back through the lb. this is necessary with sticky sessions for example. when you do not want the traffic to go back through the server, you have to send a redirect. but this way, the client will direct the next requests directly to one node and will not know about the other node when this one goes down. so it is definitely your interest that the traffic goes through the lb all the time.

share|improve this answer

You're quick to accept answers. :-)

Yes, in the majority of load balancing solutions all HTTP traffic goes through the load balancer when it goes back 'out' to the client.

Avoiding the load balancer for outgoing traffic is also possible, and is used in some (large) installations. This is called "Direct Server Return" (DSR) or "Direct Routing". Here is a good overview of setting up DSR. Here is a opinion piece on the disadvantages of DSR.

In broad strokes, for 95% of all websites a good load balancer will not a performance bottleneck. Unless you have good reasons, and load balancing expertise available, you should probably not need to play around with DSR.

share|improve this answer
Yes, well I'm new and all that ;). That's new info, tnx. I'll choose normal LB, as we are in 3 with no BL background and catching up with big ones (good that most of them 'support' open source and share much info). – Alan Ristić Feb 11 '10 at 18:07

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.