I've built a django / python application, running on apache with wsgi, and hosted on a single amazon AWS EC2 instance.
It a custom client application, so low traffic, but one part of my application generates reports, which take a requires more horse power, so I'd like to add an incoming web server which looks at my requests and sends them to one of two application servers.
I am guessing it's not exactly load balancing, because I want to treat the requests for generating documents different from other requests. So I envision apache on one machine, and django on another...
But how do people do this?
- Do I run a wsgi-based django app on the web server that looks at the request and then forwards it to another machine that is running apache with a wsgi-based django app?
- Or is there some apache mod that forwards on requests from the web server, and then the application run as stand-alone django servers without apache?
- Or can a load balancer (like amazon's elastic load balancer) be configured to do this?
I've been having trouble finding documentation on this - is there something in particular I could be searching for?