Force a backend health probe?

Dridi Boukelmoune dridi.boukelmoune at zenika.com
Tue Sep 10 22:57:31 CEST 2013


On Tue, Sep 10, 2013 at 10:46 PM, Stephen Wood <smwood4 at gmail.com> wrote:
> Thanks for the breakdown. I think "initial" was the configuration change I
> was looking for. If I set this to 0 will the backends be assumed to be
> healthy until they hear back from their first health check?

I don't know, but from the man I understand that a probe should by
default start as healthy. Btw I'm assuming varnish 3.0.4.

What I'd do is simply test the probes with a terminal running
something like "watch -n1 varnishadm debug.health" (I don't know the
syntax by heart) and watch how it behaves at startup.

Dridi

> On Tue, Sep 10, 2013 at 1:43 PM, Dridi Boukelmoune
> <dridi.boukelmoune at zenika.com> wrote:
>>
>> Hi,
>>
>> From the man vcl:
>>
>> .window
>>        How many of the latest polls we examine to determine backend
>>        health.  Defaults to 8.
>>
>> .threshold
>>        How many of the polls in .window must have succeeded for us to
>>        consider the backend healthy.  Defaults to 3.
>>
>> .initial
>>        How many of the probes are considered good when Varnish starts.
>>        Defaults to the same amount as the threshold.
>>
>>
>> On Tue, Sep 10, 2013 at 8:20 PM, Stephen Wood <smwood4 at gmail.com> wrote:
>> > Is it possible to force a backend-end health probe or force mark a
>> > backend
>> > as healthy?
>> >
>> > For example, you have a group of machines and their health probe is set
>> > to
>> > something like 60 seconds, which is preferable for every-day use.
>> > However,
>> > when starting the varnish machine for the first time I would like these
>> > backends to be marked healthy as quick as possible.
>> >
>> > Any ideas how this can be done without just changing the VCL for period
>> > of
>> > time?
>>
>> What are the "threshold" and "initial" values of your probes ?
>>
>> > --
>> > Stephen Wood
>> > www.heystephenwood.com
>> >
>>
>> Dridi
>>
>> > _______________________________________________
>> > varnish-misc mailing list
>> > varnish-misc at varnish-cache.org
>> > https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>
>
>
>
> --
> Stephen Wood
> www.heystephenwood.com



More information about the varnish-misc mailing list