Load Balanced Apache keeps browser/user on same server until restart

So we have a load balancer setup to pass off our http connections to an array of six servers .. I have disabled KeepAlive and for some reason, only after I restart apache, does my additional connections/requests get routed to a different server (random in the pool) .. any tips?

I’m 100% sure our load balancer is doing as it should with 0 persistence as any new connections get passed around without a problem.

Answer

If you’re using mod_proxy_balancer then read the Apache documentation for the module which gives some tips at the end at diagnosing stickyness issues via the log.

Have you tried accessing the site from different clients to see if they get always get forwarded to the same server?

Attribution
Source : Link , Question Author : hawaiian9d9 , Answer Author : uesp

Leave a Comment