Backend syntax changed

Dave Cheney dave at cheney.net
Mon Feb 18 13:09:30 CET 2008


Thank you for your kind assistance Poul-Henning.

Cheers

Dave

On 18/02/2008, at 8:04 PM, Poul-Henning Kamp wrote:

> In message <5A36E0C0-F398-4D00-9026-12E4D8AC31EC at cheney.net>, Dave  
> Cheney write
> s:
>> Hi,
>>
>> I compiled r2505 from svn but the backend syntax has changed since
>> this page
>>
>> http://varnish.projects.linpro.no/wiki/Backends
>>
>> was written. Can anyone please supply with the new round_robbin  
>> syntax
>> for the following old style config
>>
>> backend_round_robin default {
>> 	set backend.set = {
>> 		{ "172.16.0.72", "http" }
>> 		{ "172.16.0.73", "http" }
>> 	};
>> }
>
> Hi Dave,
>
> I have not converted the round_robin code yet, but you should be get
> roughly the same effect with a 2 part random:
>
> 	director default random {
> 		{
> 			.backend = { .host = "172.16.0.72"; }
> 			.weight = 1;
> 		}
> 		{
> 			.backend = { .host = "172.16.0.73"; }
> 			.weight = 1;
> 		}
> 	}
>
>
> -- 
> 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-dev mailing list