Re: doublecheck

From: Robert Collins <robert.collins@dont-contact.us>
Date: Wed, 15 Nov 2000 00:38:40 +1100

What I'll do is call a ifoktocheck function each time the event is called.
That'll make it dead easy for any 'timing' features to be added by anyone.

Reuben for your suggestion: I'd set the start and stop to be the 12:00am to
11:59 pm giving you round the clock. All that would be needed then is the
additional load-testing code.

Rob

----- Original Message -----
From: "Reuben Farrelly" <reuben-squid@reub.net>
To: "Robert Collins" <robert.collins@itdomain.com.au>
Sent: Tuesday, November 14, 2000 10:15 PM
Subject: Re: doublecheck

> Hi Rob,
>
> I like your idea a lot and am looking forward to it being implemented. A
> "feature suggestion" for this may be to allow the check to run all the
> time, however make it stop when the load on the proxy reaches a certain
> perhaps predefined threshold (eg cache_consistency_threshold = 10) meaning
> that the background check will be paused for 5 minutes when squid received
> more than 10 hits/min or maybe 100k of traffic in the last minute?
>
> Reuben
>
>
> At Tuesday 10:15 PM 14/11/2000 +1100, you wrote:
> >Well as I understand it the dirty rebuild from swaplog/ dirty rebuild
from
> >disk process is to start serving hits asap. The doublecheck code was to
> >allow users to validate the cache without it going offline when an
> >inconsistency is found.
> >
> >So the doublecheck code is best backgrounded to a slow creep over the
files.
> >By doing that we can easily go L2 dir by L2 dir and address your
performance
> >suggestion. We can't do that during a rebuild from log because we are
> >parsing the log. I'll whip something up this week to go through all the
> >cache dirs L2 by L2 and crosscheck.
> >
> >Perhaps this could be an ongoing background process? With start-stop
periods
> >in squid.conf
> >
> >i.e.
> >cache_consistency_start 12:01 am
> >cache_consistency_stop 5am
> >
> >and at 5am the check 'pauses' however far through it got, and picks up
from
> >there , so when 12:01 rolls around it carries on without restarting.
>
> -------------------------------------------------------------
> Reuben Farrelly West Ryde, NSW 2114, Australia
>
>
Received on Tue Nov 14 2000 - 06:32:31 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:12:58 MST