Varnish with mod prefork vs mpm worker with mod-fcgid
nick tailor
nick.tailor at gmail.com
Wed Feb 27 01:49:53 CET 2013
I have heard of others having similar issue with same setup.
Generally they use mpm-prefork or mod fcgi with varnish. I have heard using
Nginx with varnish is the way to go.
What I would do, is disable modfcgi and see if it changes. If it does you
know the problems lies in the settings.
Cheers
Nick Tailor
On Tue, Feb 26, 2013 at 4:37 PM, Mark Strickland <smsmail at roadrunner.com>wrote:
> I have this in m php-fcgid.conf****
>
> ** **
>
> AddHandler fcgid-script .fcgi .php****
>
> # Where to look for the php.ini file?****
>
> DefaultInitEnv PHPRC "/etc/php5/cgi"****
>
> # Maximum requests a process handles before it is terminated****
>
> MaxRequestsPerProcess 1000****
>
> # Maximum number of PHP processes****
>
> MaxProcessCount 10****
>
> # Number of seconds of idle time before a process is terminated****
>
> IPCCommTimeout 300****
>
> IdleTimeout 240****
>
> #Or use this if you use the file above****
>
> FCGIWrapper /usr/bin/php-cgi .php****
>
> ** **
>
> ** **
>
> ** **
>
> ServerLimit 500****
>
> StartServers 3****
>
> MinSpareThreads 3****
>
> MaxSpareThreads 10****
>
> ThreadsPerChild 10****
>
> MaxClients 300****
>
> MaxRequestsPerChild 1000****
>
> ** **
>
> *From:* varnish-misc-bounces at varnish-cache.org [mailto:
> varnish-misc-bounces at varnish-cache.org] *On Behalf Of *nick tailor
> *Sent:* Tuesday, February 26, 2013 7:28 PM
> *To:* Stephen Strickland
> *Cc:* varnish-misc at varnish-cache.org
> *Subject:* Re: Varnish with mod prefork vs mpm worker with mod-fcgid****
>
> ** **
>
> I believe it has to do with the new processes being spawned. You might
> need to tweak the fastCGI processes to allow more request per process in
> one of your confs****
>
> ** **
>
> ** **
>
> MaxRequestsPerProcess 1000****
>
> MaxProcessCount 5****
>
> IPCCommTimeout 600****
>
> IdleTimeout 600****
>
> ** **
>
> Hope that helps****
>
> ** **
>
> Cheers****
>
> ** **
>
> Nick Tailor****
>
> ** **
>
> On Tue, Feb 26, 2013 at 3:30 PM, Stephen Strickland <
> webmaster at serviidb.com> wrote:****
>
> I running a site with Drupal 7 and with apache2 installed initially I was
> using mod prefork, I was getting varnish hit rates at least high 80’s or
> middle 90s. I changed to mpm worker with mod_fcgid and now I am now
> getting an average of 25%.****
>
> ****
>
> Anyone out there know of anything that could be causing this?****
>
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc****
>
> ** **
> ------------------------------
>
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 2013.0.2899 / Virus Database: 2641/6135 - Release Date: 02/26/13*
> ***
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20130226/1529a8e3/attachment.html>
More information about the varnish-misc
mailing list