Devin Torres napisaĆ(a):
> Given this situation, I believe that despite paste making an effort to
> be multithreaded, it would still be advantageous to run a cluster of
> four Pylons instances and proxy to these using nginx.
We're using 2 instances of paster with few threads. It's working
better than one instance. We have apache load balancer in front.
Configuration:
[server:main]
use = egg:paste#http
host = 0.0.0.0
port = 5000
use_threadpool = True
threadpool_workers = 10
[server:main2]
use = egg:paste#http
host = 0.0.0.0
port = 5001
use_threadpool = True
threadpool_workers = 10
Start commands:
paster serve production.ini --server-name=main --pid-file=main.pid --
log-file=main.log --daemon start
paster serve production.ini --server-name=main2 --pid-file=main2.pid --
log-file=main2.log --daemon start
Apache conf:
RewriteRule ^(.*)$ balancer://somename$1 [P,L]
<Proxy balancer://somename>
BalancerMember http://127.0.0.1:5000 retry=3
BalancerMember http://127.0.0.1:5001 retry=3
</Proxy>
You can use nginx too.
Climbus
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---