Search squid archive

storeDirWriteCleanLogs() blocking queries

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

 



Hi,

We've been noticing lately that the logrotation process is taking longer and longer as our caches fill up - currently, with ~18 million on-disk objects, we've seen it take as long as 12 seconds, during which time squid is not answering queries.

Searching on this issue found the following prior thread on this:

http://www.mail-archive.com/squid-users@xxxxxxxxxxxxxxx/msg24326.html

Is this still the case that the storeDirWriteCleanLogs() function is expected to take this long when the cache_dirs get this large? Is there anything that can be done to mitigate this? The issue is that we rotate logs fairly frequently (multiple times per hour), which amplifies this issue.

As a workaround, we may disable the storeDirWriteCleanLogs() in mainRotate() and trigger it on a different signal instead. Sound like a reasonable workaround? If so, what should the maximum time between rotating swap.state be?

-Chris

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

  Powered by Linux