Re: [squid-users] is it bad to constantly reload squid.conf

From: squid <squid_at_manning.nottingham.sch.uk>
Date: Wed, 25 Nov 2009 12:59:07 +0000

Amos Jeffries wrote:
> Jeff Peng wrote:
>> You will 'squid -k reconfig' for reloading the new config file.
>> This is safe enough form what I checked in the sources years ago.
>> But if you reconfig it too frequently, I don't know the result.
>>
>> Regards.
>
> Squid will not accept new requests for the period it takes to reload the
> config, restart the helpers, and write the cache index to disk and read
> it back in again.
>
> Amos
>
>> ---------- Original Message ----------
>> From: squid <squid_at_manning.nottingham.sch.uk>
>> To: Squid Users <squid-users_at_squid-cache.org>
>> Subject: [squid-users] is it bad to constantly reload squid.conf
>> Date: Wed, 25 Nov 2009 11:17:25 +0000
>>
>> Hello,
>>
>> My question is, would it be 'bad' to reload squid.conf, up to 100 times
>> within a very short space of time? If so, is there a 'better' way of
>> getting Squid to acknowledge changes made to an ACL?
>>
>> I work in a school and have created an ACL which reads in pupils network
>> ids from an external text file this then allows them to access the web.
>> The contents of this file are dynamic and pupils ids are added via a php
>> script after they agree to abide by the schools internet policy.
>>
>> Currently, every time a new user is added to the list the squid
>> configuration file is reloaded. It is possible that this may happen many
>> times (up to 100) within a few seconds.
>>
>> I'm a bit of a newbie to all of this so apologies if i'm going over old
>> ground..
>>
>> Many Thanks
>>
>>
>> ____________________________________________________________
>> Doctoral Degrees Online
>> Explore our directory of degrees. Move ahead with a Doctorate Degree!
>> http://thirdpartyoffers.netzero.net/TGL2231/c?cp=TKgjATv5Q0NTriuO2FbeHQAAJz4_zcPXSKpk-wtwPtDFgJ8JAAQAAAAFAAAAALx0kz4AAAMlAAAAAAAAAAAAAAAAAAkSEAAAAAA=
>
>

Thank you both for your replies.

The worst case was that reloading the config this way would cause squid
to fail. From what I understand about the reply from Amos, the way squid
would behave when handling these multiple reloads may create a situation
where a user has been added onto the ACL but Squid has failed to reload
properly, causing the user to be denied access to the web. In that
instance - is there a better way to make Squid aware of changes to an
ACL as they happen or is reloading the only way?

Regards

Rob
Received on Wed Nov 25 2009 - 13:03:32 MST

This archive was generated by hypermail 2.2.0 : Thu Nov 26 2009 - 12:00:03 MST