[Zope] ISSUE with ZEO + Squid please help!!

Gustavo M. Palomares Reyes gpalomares@proceso.com.mx
Tue, 16 Jul 2002 11:24:21 -0500


This is a multi-part message in MIME format.

------=_NextPart_000_0071_01C22CBB.54E95700
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,

I have a problem with squid and ZEO. I was using in one machine a squid =
and Zope, but the site was comming slow, so i decide to move to a three =
computers architecture and a load balancer.=20

I have one data storage and two Zeo Clients. In both zeo clients I put =
squid, both of them pointing to local machine in accelerated mode =
(non-real IP). Both machines non-real ip addreses and an real IP =
pointing to them via NAT. My load balancer point to both zeo clients =
through the internal IP.

I saw with a day with no load the site works good , but in days with =
much load the site start to work strange, it begans to slow his replies =
dramatically. I saw my zeo clients and apparently everything works fine, =
I saw also the CPUS load, and zope do not use much cpu (56%) and squids =
neither.

Im desperate, i dont know what to do im new in squid connecting to ZEO, =
i saw the how-tos that are in Zope.org buth the one who use squid with =
zope is wit a configuration wit virtual host and DTML, im not using =
virtual host and im using ZPT's

I configured my squid in the following way:

acl all src 0.0.0.0/0.0.0.0
http_access allow all
http_port 80
httpd_accel_port 8080
httpd_accel_host localhost
httpd_accel_single_host on
httpd_accel_with_proxy on
memory_pools off
ie_refresh off

the rest its the default stuff.

Also i put siteRoot in my zope pointing to my load balancer (eg.base =
http://mydomain.com) to force zope to pass first through squid. Because =
if i took off this my squids, sent back a reply to my users like this =
http://localhost:8080/myzpt.html


Im using Zope 2.5.1, squid 2.4 and Zeo 1.0
My Zeo clients has 730 Mb RAM


Hope somebody can help me

tavo

------=_NextPart_000_0071_01C22CBB.54E95700
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.3103.1000" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I have a problem with squid and ZEO. I =
was using in=20
one machine a squid and Zope, but the site was comming slow, so i decide =
to move=20
to a three computers architecture and a load balancer. </FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I&nbsp;have one data storage and two =
Zeo Clients.=20
In both zeo clients I put squid, both of them pointing to local machine =
in=20
accelerated mode (non-real IP). Both machines non-real ip addreses and =
an real=20
IP pointing to them via NAT. My load balancer point to both zeo clients =
through=20
the internal IP.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I saw with a day with no load the site =
works good ,=20
but in days with much load the site start to work strange, it begans to =
slow his=20
replies dramatically. I saw my zeo clients and apparently everything =
works fine,=20
I saw also the CPUS load, and zope do not use much cpu (56%) and squids=20
neither.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Im desperate, i dont know what to do im =
new in=20
squid connecting to ZEO, i saw the how-tos that are in Zope.org buth the =
one who=20
use squid with zope is wit a configuration wit virtual host and DTML, im =
not=20
using virtual host and im using ZPT's</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I&nbsp;configured my squid in the =
following=20
way:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>acl all src =
0.0.0.0/0.0.0.0</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>http_access allow all</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>http_port 80</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>httpd_accel_port 8080</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2>httpd_accel_host localhost</FONT></DIV>
<DIV>httpd_accel_single_host on</DIV>
<DIV>httpd_accel_with_proxy on</DIV>
<DIV>memory_pools off</DIV>
<DIV>ie_refresh off</DIV>
<DIV>&nbsp;</DIV>
<DIV>the rest its the default stuff.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Also i put siteRoot in my zope pointing to my load =
balancer&nbsp;(eg.base=20
<A href=3D"http://mydomain.com">http://mydomain.com</A>) to force zope =
to pass=20
first through squid. Because if i took off this my squids, sent back a =
reply to=20
my users like this <A=20
href=3D"http://localhost:8080/myzpt.html">http://localhost:8080/myzpt.htm=
l</A></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Im using Zope 2.5.1, squid 2.4 and Zeo 1.0</DIV>
<DIV>My Zeo clients has 730 Mb RAM</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Hope somebody can help me</DIV>
<DIV>&nbsp;</DIV>
<DIV>tavo</FONT></DIV></DIV></BODY></HTML>

------=_NextPart_000_0071_01C22CBB.54E95700--