Search squid archive

Re: Workers reconfigure-question on 3.2.5

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx> wrote:
> Hi, Tom,
>
> What did you change in the configuration file?
>
> t
>
>
> On Mon, Jan 7, 2013 at 6:10 AM, Tom Tom <tomtux007@xxxxxxxxx> 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/


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux