Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Load Balancing Multiple Django Webservers

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?

like image 808
theycallmemorty Avatar asked Sep 02 '10 12:09

theycallmemorty


1 Answers

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.

like image 106
Steve Jalim Avatar answered Nov 06 '22 11:11

Steve Jalim