Re: [squid-users] Workers reconfigure-question on 3.2.5

From: Tianyin Xu <tixu_at_cs.ucsd.edu>
Date: Tue, 8 Jan 2013 00:17:56 -0800

Also, did you find the following log message in your logs:

"WARNING: Changing 'workers' (from 1 to 4) is not supported and ignored"

T

On Tue, Jan 8, 2013 at 12:15 AM, Tianyin Xu <tixu_at_cs.ucsd.edu> wrote:
> Hi, Tom,
>
> Do you have the directories "/squid-cache00" to "/squid-cache04" ready?
>
> Did you run $squid -z first?
>
> t
>
> On Mon, Jan 7, 2013 at 11:51 PM, Tom Tom <tomtux007_at_gmail.com> wrote:
>> Hi
>>
>> I just added the following lines:
>> workers 4
>> cache_dir aufs /squid-cache0${process_number} 100000 64 512
>> cache_dir aufs /squid-cache0${process_number} 100000 64 512
>> cache_dir aufs /squid-cache0${process_number} 100000 64 512
>> cache_dir aufs /squid-cache0${process_number} 100000 64 512
>>
>> I tried the following reloads:
>> - kill -1 on the squid main process -> no success.
>> - kill -1 on the squid-coord-process -> no success.
>>
>> "No success" hereby means, that after the SIGHUP
>> -> no 3128 listener was reachable
>> -> a kid5 was tried to access a cache_dir /squid-cache05, which does not exist
>>
>> Kind regards,
>> Tom
>>
>>
>> On Tue, Jan 8, 2013 at 6:52 AM, Tianyin Xu <tixu_at_cs.ucsd.edu> wrote:
>>> Hi, Tom,
>>>
>>> What did you change in the configuration file?
>>>
>>> t
>>>
>>>
>>> On Mon, Jan 7, 2013 at 6:10 AM, Tom Tom <tomtux007_at_gmail.com> wrote:
>>>>
>>>> Hi
>>>>
>>>> I'm using 3.2.5 with four workers (workers 4). Each worker has its own
>>>> cache_dir:
>>>> workers 4
>>>> cache_dir aufs /squid-cache0${process_number} 100000 64 512
>>>> cache_dir aufs /squid-cache0${process_number} 100000 64 512
>>>> cache_dir aufs /squid-cache0${process_number} 100000 64 512
>>>> cache_dir aufs /squid-cache0${process_number} 100000 64 512
>>>>
>>>> When I now reconfigure squid with "squid -f /etc/squid/squid.conf -k
>>>> reconfigure" or "squidclient mgr:reconfigure", then I got the
>>>> following error in the cache.log:
>>>> 2013/01/07 14:34:54 kid5| /squid-cache05/swap.state: (2) No such file
>>>> or directory
>>>>
>>>> After this reconfigure, squidclient is no more usable (it always
>>>> throws an 404). After this reconfigure, the main process for the
>>>> 3128er-listener is then not the process "squid-coord-5" ->it's one of
>>>> the kid-process.
>>>>
>>>> $ netstat -pantue | grep 3128
>>>> tcp 0 0 0.0.0.0:3128 0.0.0.0:*
>>>> LISTEN 0 1441481 20003/(squid-coord-5)
>>>>
>>>> $ squidclient mgr:reconfigure
>>>>
>>>> $ netstat -pantue | grep 3128
>>>> tcp 0 0 0.0.0.0:3128 0.0.0.0:*
>>>> LISTEN 0 1448779 20004/(squid-4)
>>>>
>>>> $ squidclient mgr:info
>>>> HTTP/1.1 404 Not Found
>>>> Server: squid
>>>> Mime-Version: 1.0
>>>> Date: Mon, 07 Jan 2013 13:58:37 GMT
>>>> Content-Type: text/html
>>>> Content-Length: 3299
>>>> X-Squid-Error: ERR_INVALID_URL 0
>>>> Vary: Accept-Language
>>>> Content-Language: en
>>>> ...
>>>> ...
>>>>
>>>>
>>>>
>>>> Why does squid spawns a kid5-process (after the reconfigure) with a
>>>> fifth cache_dir although there are just four configured? How can I
>>>> reconfigure squid properly with workers running?
>>>>
>>>> Many thanks.
>>>> Kind regards,
>>>> Tom
>>>
>>>
>>>
>>>
>>> --
>>> Tianyin XU,
>>> http://cseweb.ucsd.edu/~tixu/
>
>
>
> --
> Tianyin XU,
> http://cseweb.ucsd.edu/~tixu/

-- 
Tianyin XU,
http://cseweb.ucsd.edu/~tixu/
Received on Tue Jan 08 2013 - 08:18:07 MST

This archive was generated by hypermail 2.2.0 : Tue Jan 08 2013 - 12:00:03 MST