[Zope] Re: apache 2, mod_deflate, mod_fastcgi, zope 2.7: something's slow.

2005-08-17 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Faried Nawaz wrote:

 It seems that if I use mod_deflate to compress zope's responses, I take a
 major hit -- around 1.4 seconds without compression and around 16.4 seconds
 with. I can't figure out what I'm doing wrong here. 
 
 I have zope 2.7.7 running with the fast-cgi ZServer enabled. Urls beginning 
 with http://pkfinance.info/pkf-z1/ go to Zope. Here's what I see:

You seem to be running Apache and Zope on the same host, and trying to
use the same constrained resource (CPU) from each.  You might be able to
improve performance by running Apache on a separate box, where it won't
steal CPU from Zope to do the compression.


Tres.
- --
===
Tres Seaver  +1 202-558-7113  [EMAIL PROTECTED]
Palladion Software   Excellence by Designhttp://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDA1NH+gerLs4ltQ4RAlmRAKC3QtsQFjbmGVyAsC4A0j/go/G1GQCfXhG5
KzpIFjJRnIwJJPoL19X0TvI=
=BUsz
-END PGP SIGNATURE-

___
Zope maillist  -  Zope@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 )


[Zope] Re: apache 2, mod_deflate, mod_fastcgi, zope 2.7: something's slow.

2005-08-17 Thread Faried Nawaz
I tried messing with it some more, and it seems that the fix was to place

tal:foo define=ret python:
container.REQUEST.RESPONSE.enableHTTPCompression(container.REQUEST)
tal:omit-tag= /

somewhere near the top of my template.   I didn't realize I needed
compression enabled in zope; I thought apache's mod_deflate would be
sufficient.

Someone should add this to the docs or wiki or someplace.


Faried.
___
Zope maillist  -  Zope@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 )