views:

41

answers:

1

I was wondering if anyone had ever implemented multiple Django webservers pointing to a single database, essentially functioning as a single website via load balancing?

What software did you use for load balancing?

What additional setup/configuration did your Django webservers require?

Did you need to modify your Django code in any way?

+1  A: 

On an Amazon EC2 setup, I found AWS's Elastic Load Balancer to be pretty cool (apart from only supporting a single IP address per ELB instance).

The front-end Django boxes just needed their database settings altering to point to a separate database (ie, given the database box's IP, which was an internal IP in terms of our EC2 ecosystem) and, once the database box was made to listen on that IP and the appropriate port, we were ready to rock.

stevejalim
How do you store session data?
theycallmemorty
database-backed sessions, rather than machine-specific ones, so it doesn't matter which frontend box gets the request
stevejalim