24 messages in com.googlegroups.pylons-discussadvice with configuration/scaling a l...
FromSent OnAttachments
SamDonaldson28 May 2008 13:27 
Jonathan Vanasco28 May 2008 14:04 
SamDonaldson28 May 2008 14:24 
Jonathan Vanasco28 May 2008 14:39 
SamDonaldson28 May 2008 15:11 
Jonathan Vanasco28 May 2008 16:47 
Paweł Stradomski28 May 2008 23:55 
Alex Marandon29 May 2008 00:43 
Alex Marandon29 May 2008 02:28 
Ian Bicking29 May 2008 09:04 
Graham Dumpleton29 May 2008 16:29 
Mike Orr29 May 2008 19:56 
Graham Dumpleton30 May 2008 00:49 
Alex Marandon30 May 2008 05:12 
Jonathan Vanasco30 May 2008 07:17 
Jonathan Vanasco30 May 2008 07:20 
Shannon -jj Behrens30 May 2008 11:03 
Shannon -jj Behrens30 May 2008 11:19 
Ben Bangert30 May 2008 12:03 
Jonathan Vanasco30 May 2008 12:27 
Cliff Wells30 May 2008 12:35 
Mike Orr30 May 2008 14:29 
askel31 May 2008 03:27 
SamDonaldson31 May 2008 16:33 
Subject:advice with configuration/scaling a live Pylons app.
From:SamDonaldson (samo@gmail.com)
Date:05/28/2008 01:27:44 PM
List:com.googlegroups.pylons-discuss

Hello all. I've been using Pylons/Paster for quite some time now and am deploying it live to very high webtraffic. My current configuration is the following:

Lighttpd (serves as reverse proxy, with mod_scgi) Paster (flup SCGI) --> Only one [server:main] setup, so only 1 paster process

I wanted to know what people thought of this configuration, and/or whether we should move to a Nginx/Paster (SCGI) configuration instead?

Running ab benchmark tests revealed many requests were failing. Should I be starting MORE Paster processes to handle the load? Is this the right thing to do, or is the Paster (SCGI) process itself multi-threaded to handle such synchronous requests. Say the Paster process is doing some I/O (SQL query through sqlalchemy), would that process block and would other requests wait, or would they get serviced?

Are there any profiling services for paster or my pylons app? If so, what are the best ones? I"m using sqlalchemy primarily for using its connection pooling mechanism...what's a good way of testing whether connection pooling is working smoothly?

Thanks in advance.