[Zope] Zope + Apache on Quad Debian machine

John Snowdon J.P.Snowdon at newcastle.ac.uk
Thu Mar 16 06:37:31 EST 2006


Why do you want to do this? Do you believe that this is more effective
or efficient than the scheduling algorithm that Linux uses? Binding an
application to a single processor makes very little sense at all.

If Zope really is your limiting factor, then you need to spread that
load over as many processors as possible, not lock it down to a single
cpu - if you do that, then the rest of the processors sit idle while
waiting for Zope to respond.

Read up on ZEO. Then set yourself a ZEO server up and a couple of ZEO
clients, balance your requests between the two using pound, apache or
squid. I can guarantee you that if your system is Zope limited, then
this will greatly increase responsiveness and the number of requests you
can process simultaneously - I run over a dozen dual processor machines
hosting approx 60 Zope applications across them, all using ZEO - an
average of 5 or 6 instances per system, we have no problem with Zope
only using one processor; the applications that are across most machines
(up to 10 in our largest application) are very, very fast indeed and can
cope with all the concurrent users we can throw at it.

Your problem is not Zope itself... you definitely need to investigate
further before coming to the conclusion that binding a Zope instance to
a single processor is a solution - if you'll excuse me, that's a rather
simplistic view to take. 

I was also suggest reading up on Apache, Linux, Proxying/Caching,
Clustering and Load Balancing - they're all factors to consider when
developing and deploying a web application.

 John Snowdon - IT Support Specialist
-==========================================-
 School of Medical Education Development 
 Faculty of Medical Sciences Computing
 University of Newcastle

 Email : j.p.snowdon at ncl.ac.uk


>-----Original Message-----
>From: zope-bounces+j.p.snowdon=newcastle.ac.uk at zope.org 
>[mailto:zope-bounces+j.p.snowdon=newcastle.ac.uk at zope.org] On 
>Behalf Of Hugo Ramos
>Sent: 15 March 2006 20:45
>To: [Zope]
>Subject: [Zope] Zope + Apache on Quad Debian machine
>
>
>Yellow,
>
>I'm using Zope+Apache on a 4 xeon's/4GB ram machine running Debian.
>I've noticed that the CPU's never go beyond 30% top occupation... but
>on rush hours the site takes too long to load...
>
>I've been reading about process affinity and how it could speed up
>everything by making zope run on 1 CPU, Apache on another and so on...
>
>Has any1 tried this before? Can you point me to some documentation?
>What's your experience? is it true that not doing this the 4 cpu's
>will not be 100% used?
>
>
>Cheers
>--
>Hugo Ramos - ramosh at gmail.com
>http://www.orkut.com/Profile.aspx?uid=10082105466310142690
>_______________________________________________
>Zope maillist  -  Zope at zope.org
>http://mail.zope.org/mailman/listinfo/zope
>**   No cross posts or HTML encoding!  **
>(Related lists - 
> http://mail.zope.org/mailman/listinfo/zope-announce
> http://mail.zope.org/mailman/listinfo/zope-dev )
>


More information about the Zope mailing list