backend/director admin states

Geoff Simmons geoff at uplex.de
Thu May 3 09:06:23 UTC 2018


On 05/03/2018 10:49 AM, Dridi Boukelmoune wrote:
>> Illustrated example: varnishadm backend.list output
>>
>> Backend name                  Admin     Probe      Last change
>> boot.b1                       probe     0/8 bad    Wed, 02 May 2018 13:22:10 GMT
>> boot.b2                       probe     8/8 good   Wed, 02 May 2018 13:22:10 GMT
>> boot.b3                       healthy   1/8 bad    Wed, 02 May 2018 13:22:10 GMT
>> boot.b4                       healthy   -          Wed, 02 May 2018 13:22:10 GMT
>> boot.b5                       sick      7/8 good   Wed, 02 May 2018 13:22:10 GMT
>> boot.b6                       sick      -          Wed, 02 May 2018 13:22:10 GMT
>> boot.b7                       disabled  7/8 good   Wed, 02 May 2018 13:22:10 GMT
>> boot.b8                       deleted   -          Wed, 02 May 2018 13:22:10 GMT
>> boot.d1                       dependent -          Wed, 02 May 2018 13:22:10 GMT
>> boot.d2                       probe     3/4 good   Wed, 02 May 2018 13:22:10 GMT
> 
> We should make this output a bit more functional if we're going to
> break the output.

[...]

> Example:
> 
>> Name        Type        Health    Probe    State    Comment    Last change
>> boot.www1    std        auto    none    good    -    Wed, 02 May 2018 13:22:10 GMT
>> boot.www2    std        sick    none    bad    -    Wed, 02 May 2018 13:22:10 GMT
>> boot.www    fallback    auto    cluster    good    -    Wed, 02 May 2018 13:22:10 GMT
> 
> The idea is to avoid blanks inside columns (except "last change/updated")
> to make it more friendly to a ny column oriented toollike /bin/sh's `read` or
> awk's fields.

I would also suggest ISO 8601 format for the 'Last change' column, to
make it more easily parseable:

2018-05-02T13:22:10Z

Then every whitespace-separated field corresponds to a data column.


Best,
Geoff
-- 
** * * UPLEX - Nils Goroll Systemoptimierung

Scheffelstraße 32
22301 Hamburg

Tel +49 40 2880 5731
Mob +49 176 636 90917
Fax +49 40 42949753

http://uplex.de

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20180503/432b8118/attachment.bin>


More information about the varnish-dev mailing list