All Products 
Username / Customer#
Password
Log In
 Hi,  |  Log Out
  • Site Search
  • Domain Search
  • WHOIS Domain Check
24/7 Support: (480) 505-8877
Hablamos Español
9 AM to 9 PM IST
7 days a week
Go Daddy Support

Search help articles, forums, and discussion groups

Load Balancing Question

Viewing post 1 to 3 (3 total posts)
Profile picture of Kaikyro

kaikyro said 1 year, 1 month ago:

If I setup two web servers behind a load balancer (say round robin method). Will the load balancer always send clients to the same server consistently or will I need to then add some custom form of session management to my website?

Profile picture of Vincent

GoDaddy Expert vincent said 1 year, 1 month ago:

There are 3 balancing algorithms to choose from.. “Round-Robin” and “Least Connections” are essentially random; “Source IP” will generally send requests from a particular client to the same server each time.

I would not rely on this as a mechanism to maintain user sessions though. You lose the ability to add and remove machines from the balancer on-demand, and client IPs can also change unexpectedly.

A better solution is storing session state on something shared.. a database, key/value store, shared filesystem, etc. This way any machine can handle any request that comes in without “sticky” sessions.

Profile picture of Kaikyro

kaikyro said 1 year, 1 month ago:

Thanks for that, certainly answers the question.

Add a reply:

You will auto join this group when you reply to this topic.

When posting about a technical issue, please be sure to include as many details as possible, such as your domain name, related URLs and other pertinent information. This consideration will allow us to better understand the situation and quickly assist you.