Blog post with tornado setup? :)
Kenneth Gonsalves wrote:


On Friday 16 Oct 2009 4:16:26 am Graham Dumpleton wrote:

> > > Are you certain that the web server is the performance bottleneck?  In

> > > my experience, it rarely is.

> >

> > That argument aside, can we get an answer?

>

> But what he states is very important and shouldn't just be ignored.

>

> Now, I am sure someone will respond about Tornado, but have you even

> made an attempt to tune your Apache/mod_wsgi installation?

>

> Also be aware that the Tornado benchmarks are quite misleading.

> Although they given an impression that it runs up to 4 times quicker

> than Apache/mod_wsgi that is not actually true and it certainly

> doesn't mean your full application stack is magically going to run 4

> times quicker.



my two paise: I run a VPS with 5 django sites on it. RAM is 256. I was using 

more or less untweaked apache with mod_python. The only tweaking done was 

playing around a bit with prefork settings. Now the sites there are extremely 

low volume - if any of them get more than 10 visitors a day it is some thing 

to celebrate. But even at this volume, pages (simple pages) were taking upto 2 

minutes to load. And once or twice when there were more than a 100 visitors to 

one site, the server would freeze. Top would show several apache instances 

hogging most of the memory. I shifted to nginx/tornado. No tweaking here. Just 

the default install. Page loads are under a couple of seconds (compared to 

minutes). The processes do not even show up in the top part of top. There fore 

my take is: for the low end of the market, the bottleneck is RAM and the 

webserver. At this end of the market there is not much point in spending time 

tweaking apache when much better performance can be expected without spending 

much time with nginx/tornado. My experience in another server shows that this 

is at least twice as fast as apache/mod_wsgi. I repeat - this is my experience 

for low end of the market. And my experience is empirical.

-- 

regards

kg

http://lawgon.livejournal.com








--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to