Devin Torres wrote:
> On Wed, Apr 23, 2008 at 3:20 PM, Christopher Weimann
> 
> Do you happen to know the applicable setting to use when specifying
> the size of that pool?
> 

Just to use fcgi_fork do this.

[server:main]
use = egg:PasteScript#flup_fcgi_fork
host = 0.0.0.0
port = 5000

I've never changed the defaults for the pool but I think this is 
supposed to be the right way to do it.

[server:main]
paste.server_factory = flup.server.fcgi_fork:factory
host = 0.0.0.0
port = 5000
maxChildren=50
maxSpare=5
minSpare=1

Those are the default pool settings so that SHOULD be the equivalent of 
the first config section.  The problem is it doesn't seem to work that 
way.  If I use the server_factory and start things up with  'paster 
serve development.ini' it seems fine until I hit ctrl-c to stop it.
Then all hell breaks loose and it starts forking off children like mad 
bringing the machine to its knees.

I was planning on moving an app from quixote using its preforked 
scgi_server.py to pylons with flup_scgi_fork but apparently thats a bad 
idea.  Either I'm using the factory wrong or I need to figure out whats 
up with flup.

I suppose another option is using a Paste#http instance for each 
processor and nginx as a reverse proxy spreading the load over them.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to