I'm looking to run some Django sites on my VPS, with nginx acting as a front-end for it. I've been having some issues with
mod_python and Apache, the site just starts erroring out whenever the traffic starts to pick up because it just uses so much RAM for each request. So I did some research, and found out that
mod_pythonreally isn't my best bet for a small VPS.
mod_python, and yesterday I still had some people saying they were getting 500 errors for no reason at all.
What I'm looking to do is use FastCGI to run Django now, I've read that it can handle higher traffic with less RAM, but the configuration of it has been a bit weird for me to understand; I'm no expert on some of the terms being thrown around at all. The main things I'm looking at are these options:
maxspare=NUMBER max number of spare processes / threads minspare=NUMBER min number of spare processes / threads maxchildren=NUMBER hard limit number of processes / threads method=IMPL prefork or threaded (default prefork)
Any help in determining what I should set these to would be greatly appreciated. I'd also like to know how/if these processes it's mentioning are related to the nginx worker processes. The server hosts 4 websites that usually handle a couple thousand hits per day, but they all tend to get hit around the same time with the majority of the traffic, and that's when issues start.
Also, I read somewhere about using Tornado as a WSGI server for Django... could this possibly be a better solution? Thanks!