Strange behaviour using director random

Poul-Henning Kamp phk at phk.freebsd.dk
Thu Sep 25 16:40:50 CEST 2008


In message <onzb4r321qfrrus.250920081133 at torlen.net>, duja at torlen.net writes:
>Im testing directors in varnish 2.0 beta 2 with two backends.
>
>The thing is that only one machine is getting all the traffic when
>using random directors and .weight = 1 on both backends.

This could be because Varnish manages to reuse the connection to the
backend so it never needs to choose backend server.

To test this hypothesis:  disable keepalive on the backend.

If that is inconvenient or unpractical, set a "Connection: close"
header in vcl_miss/vcl_pass/vcl_pipe.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.



More information about the varnish-misc mailing list