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

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


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

So simple.

I want to see only one additional parameter.

idle_timeout.

When I specify it to 0 - by default - all started rewriter processess
remains after user requests,

but! it I specify it over 0 in seconds - all idle rewriters after
timeout must dies to achieve idle= value.

Logically, isn't it? This permits me to design, how cache will works
with user's sessions. And, moreover, in other software products such
behavior with shared processes is the default. I.e - Oracle shared
server. Apache WEB server in some configurations. And others.

Otherwise idle= parameter for children just do not make sense. SQUID
decides for me, it's better for my system. I want to have better
control over rewriter's children and memory consumption.

Did you agree?

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

iQEcBAEBAgAGBQJU3QUNAAoJENNXIZxhPexG688H+gOtiiVEHv2r0AtR8r/FL6qW
M0aElM8ghDpJtuRQaPULD51cav8mui9u4Q6/z25uRl+8tf0MCqtijpV56IdH3Rpd
pfQ7jcI/MuGb/XDZxLNBH858IMyu4kFtbwdT2OIw7chcszOZNxo6B6ZNiX7Vpkcy
tBxPCjgQvlPzNiZc1w8bbn4TXmVMWRH8hn3NbzI8x4PEWRteBQm7bwQVrvI4LILk
qagoKg5+rhPrAEcjk+iON04Meb/GDurL7ubQE/OsxJNQc3fFn8qWDQbb0mkKv5Vi
q+871IytNgPkhJlxHaYzG1sv9J/lJv4oi9e9rfOhXuA/lZcXKJG4YwzZWhnc9TU=
=J1xo
-----END PGP SIGNATURE-----


More information about the squid-users mailing list