varnish as traffic director

Jonathan Leibiusky ionathan at gmail.com
Thu Mar 31 14:59:33 CEST 2011


Thanks! It is great to know about real life implementations.
Do you have any good way to test rules in your dev env?
Is there any benchmark on varnish vs. nginx in regard of load balancing?

On 3/31/11, Hettwer, Marian <mhettwer at team.mobile.de> wrote:
> Hej there,
>
>
>
>
> On 30.03.11 04:52, "AD" <straightflush at gmail.com> wrote:
>
>>sub vcl_recv {
>>  if (req.url ~ "^/search") {
>>    set req.backend = search-backend;
>>  }
>>  elseif (req.url ~ "^/items") {
>>    set req.backend = items-backend;
>>  }
>>
>>}
>
> By the way, would it also be okay to write it like that?
>
> sub vcl_recv {
>
> set req.backend =  catchall-backend;
>
>
> if (req.url ~ "^/search") {
>     set req.backend = search-backend;
>   }
> if (req.url ~ "^/items") {
>     set req.backend = items-backend;
>   }
>
> }
>
>
> Obviously with the addition of the catchall-backend.
>
> Cheers,
> Marian
>
>




More information about the varnish-misc mailing list