VSL Timeout and Varnishkafka

Geoff Simmons geoff at uplex.de
Tue Jun 21 20:27:01 CEST 2016


On 06/21/2016 07:27 PM, Luca Toscano wrote:
> 
> -   VSL            timeout -   End            synth

The timeout (-T arg of the VSL tools) starts when the Begin tag for a
transaction is read from shared memory, and ticks until the End tag is
read for that transaction. If End is not encountered before the
timeout expires, you get the synthesized VSL record.

So in your example, VSL isn't seeing End in the log before the timeout
elapses, probably 120 seconds if you haven't changed the default. This
could happen, for example, if you have a response that takes that long
to complete.

To set the timeout in a VSL client, you can use:

VSL_Arg(vsl, 'T', timeout)

... where timeout is a string containing decimal digits.

varnishevent is very similar to varnishkafka and supports -T, you can
see some working code here:

https://code.uplex.de/uplex-varnish/varnishevent/blob/master/src/varnishevent.c#L641


HTH,
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: 819 bytes
Desc: OpenPGP digital signature
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20160621/c7c59105/attachment.pgp>


More information about the varnish-misc mailing list