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

Yuri Voinov yvoinov at gmail.com
Thu Feb 12 19:19:28 UTC 2015


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

BTW,

the expected behavior of a directive -

url_rewrite_children 100 startup=0 idle=1 concurrency=0

Starts with 0 initial processes,

then starts when requests up to 100,

and after some idle timeout (and be better to specify this timeout to
accomplish proxy specific behaviour) - kill idle processes to "idle=1"
value.

13.02.15 0:49, Amos Jeffries пишет:
> 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 _______________________________________________ squid-users
> mailing list squid-users at lists.squid-cache.org 
> http://lists.squid-cache.org/listinfo/squid-users
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBAgAGBQJU3PzAAAoJENNXIZxhPexGovkH/iUAkmF22F8JLl9W9loDRALv
r0RdPA0hXf3WcFrKEXZS4a/aS//Ckd3AP4wimfiFFXHPzhM9QuW0WtiqEydIOyzr
Fn3pRKsfvV7/aexn9bByrahAxGiTCcSLI3BG2lJt7TyTcQbxWAjPdmWjGJ+Y7rLC
+8IYzIOnIdkGoXZQ7EepYjaRm4DzYhHznlCAjvFtWSxQq45RpOCnzsrPhVU2NKIU
B7nmrI2znQ3UxkaTqMMjBef1uh5tHj1Lv4+P+1kuir6AFGYtnJ8eyP9FJ3e0piNl
+DfCXMewKkOgWwAiZlALRvE6aPBwYTd0UY36bF9gomU8AZJ0gHu7PFKTJGehvVU=
=vOrV
-----END PGP SIGNATURE-----


More information about the squid-users mailing list