[squid-users] Is Squid can shutdown unused idle redirector's children?

Amos Jeffries squid3 at treenet.co.nz
Thu Feb 12 18:49:30 UTC 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 13/02/2015 7:01 a.m., Yuri Voinov wrote:
> Hi gents,
> 
> subj.
> 
> And, of course - question. How to do that? I've don't seen this, if
> it exists.
> 
> For example, for this config stub:
> 
> url_rewrite_program /usr/local/bin/squidGuard -c 
> /usr/local/squidGuard/squidGuard.conf url_rewrite_children 100
> startup=0 idle=1 concurrency=0
> 
> After daily activity, at midnight, still remain near 60 processes. 
> Absolutely idle.
> 
> So, why?

The idle=1 parameter "Sets a minimum ..."

It actually is quite expensive to start them. At least one client is
being held in a pause waiting for it, and others are slowed down while
the CPU spawns the process.

Chances are high that the next day, or even a few seconds later you
will need to use them again anyway. So its a bit better to have them
idle than to discard completely.

*Particularly* since you have no concurrency for the helper. A single
client loading a page with many objects can initiate many parallel
requests. Each of which will need to be processed by one of those helpers.

Amos
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (MingW32)

iQEcBAEBAgAGBQJU3PW6AAoJELJo5wb/XPRjfkoIAKdLnuooSopmUfHiHALLRZJP
y8SCobhh34GXIHV2GoG+c/z9qJCKbbUlO4U7uKswH//HpNWGN56in6bkIex8I52d
1JpDT1GQvSHVgXuArHYjKWjrHmRBWxkR8U5SfMXfJNvm7FxrRaLlxuPPPeEK6+WZ
oNUbA3NH4pJr+7LGMDfBD3wlcZqedXPY8zav7hoNQsg1AphojgDDHSyrd6P7eLO8
dY4vJhYE81plcwsZJm8WRSc+yb/bqdiZBYWm6sZbOddo/GtOltdzstY9DZUhERqE
ag+boubub/9lQ74vm4WuJ08SZd4KLqv/B3lurT0dOjgnfotf79mKwhK1DxyMAwo=
=2ssc
-----END PGP SIGNATURE-----


More information about the squid-users mailing list