[squid-users] Failure recovery, reconfiguration/restart during rebuild (Was: How to ignore query terms for store key?)

From: Guy Bashkansky <guybas_at_gmail.com>
Date: Wed, 8 Sep 2010 13:27:19 -0700

Thanks, storeurl_rewrite works.  Of course, I shouldn't have chomped
the newline in the first place :)

Now, I'm trying to investigate failure and recovery properties of
Squid 2.7 STABLE9 relative to Squid 2.4:

Specifically, Squid 2.4 cbdata.c memory management sometimes crashed
under high load, apparently due to:
http://www.squid-cache.org/bugs/show_bug.cgi?id=761: assertion failed:
cbdata.c:249: "c->locks > 0" w/diskd

This bug appears on and off in Bugzilla, seems to be partially fixed in:
http://www.squid-cache.org/cgi-bin/cvsweb.cgi/squid/src/fs/diskd/store_io_diskd.c.diff?r1=1.37&r2=1.38
and
http://bugs.squid-cache.org/attachment.cgi?id=1604,
- then reappears differently. Any insight on this issue?

Another issue with Squid 2.x as parent cache: after failure/restart,
while rebuilding, it opens edge sockets, but it does not serve edge
requests until rebuilding is finished.
This seems to be fixed in Squid 3:
http://bugs.squid-cache.org/show_bug.cgi?id=513
-- How about Squid 2.7?

And finally, any insight from the community on the failure/restart
recovery speed of 2.7 vs 2.4?
How long it takes to rebuild, say, 80% full 16TB drive? More or less
than 15 minutes?

Regards,
Guy

2010/9/8 Henrik Nordström <henrik_at_henriknordstrom.net>:
> tis 2010-09-07 klockan 18:59 -0700 skrev Guy Bashkansky:
>
>> /usr/local/squid/bin/strip-query.pl
>>     #!/usr/local/bin/perl -Tw
>>     $| = 1; while(<>) { chomp; s/\?\S*//; print; } ### my strip query test
>
> If you chomp the newline then you need to add it back when printing the
> result.
>
> Regards
> Henrik
>
>
Received on Wed Sep 08 2010 - 20:27:45 MDT

This archive was generated by hypermail 2.2.0 : Thu Sep 09 2010 - 12:00:02 MDT