Search squid archive

RE: Squid slow shutdown

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

 



> -----Original Message-----
> From: "Michal W." [mailto:mihalw@xxxxx]
> Sent: Wednesday, November 23, 2005 12:11 PM
> To: squid-users@xxxxxxxxxxxxxxx
> Subject:  Squid slow shutdown
> 
> 
> Hello,
> 
> I am using Squid on a home desktop system 
> (Linux/Gentoo/AMD64), which is 
> typically shutdown several times a day.
> During system shutdown it takes quite a long time (~30 
> seconds) to stop 
> Squid.
> (This time is about the same when I stop Squid manually by 
> running init 
> scripts or calling "squid -k shutdown").
> 
> I am aware that Squids needs to shutdown cleanly, but it 
> appears it does 
> nothing (minimal cpu/disc activity).
> Is it normal, or is there something wrong with my setup?
> 
> Thanks,
> Michal
> 
> 

>From squid.conf.default:

#  TAG: shutdown_lifetime       time-units
#       When SIGTERM or SIGHUP is received, the cache is put into
#       "shutdown pending" mode until all active sockets are closed.
#       This value is the lifetime to set for all open descriptors
#       during shutdown mode.  Any active clients after this many
#       seconds will receive a 'timeout' message.
#
#Default:
# shutdown_lifetime 30 seconds

Likely you have a process that is accessing a site through the cache.  The cache, trying to be a good neighbor, is waiting for that access to finish before shutting down.  After the shutdown_lifetime, it just closes the connection.  Either make sure nothing is accessing the internet through Squid, or lower this value.

Then again, I could be completely off base.

Chris


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

  Powered by Linux