Random director in varnish trunk doesn't work?

Barry Abrahamson barry at automattic.com
Thu Jul 10 19:32:06 CEST 2008


Is anyone successfully using the random director in varnish trunk  
(r2917)?

I have something like this in my config:

backend web1 { .host = "10.0.1.1"; .port = "8080"; }
backend web2 { .host = "10.0.1.2"; .port = "8080"; }

director default random {
	{
         	.backend = web1;
		.weight = 1;
	}
	{
         	.backend = web2;
		.weight = 1;
	}
}

	sub vcl_recv {
		set req.backend = default;

.....

Varnish won't serve any requests -- it looks like the child just dies.  
Strace shows:

read(11, "Assert error in vdi_random_choos"..., 8191) = 102
write(2, "Child (30484) said Assert error "..., 84) = 84

Using a normal backend (not random director) works fine.

Details:   Debian Etch amd64, 2.6.18-6.

I am not sure if it is an unhandled config/syntax error in my vcl or  
something else.


--
Barry Abrahamson | Systems Wrangler | Automattic
Blog: http://barry.wordpress.com









More information about the varnish-misc mailing list