High BackendReuse Rate Problem

Hettwer, Marian mhettwer at team.mobile.de
Tue Jul 17 17:00:15 CEST 2012


The first defined backend is the default backend.
If you have url logic in vcl_recv where you decide which backends to use
for which urls, and then have requests coming in that doesn't match your
url mapping logic, that request will go to the very first defined backend.

However, it's strange that app1018 is the second backend. I'd suspected it
to be the first backend.

./Marian


On 29.06.12 12:56, "Javier Casares" <javier at casares.org> wrote:

>I usually see the same... the first backend in a director taks a
>little bit more traffic that the others...
>
>I see it in 3.0.1 and 3.0.2, not tried in 3.0.3
>
>Javier Casares
>http://javiercasares.com/
>
>
>2012/6/29 Lusurf Lui <lusurf at foxmail.com>:
>> Hi,
>>
>> I'm using the Varnish-Cache-3.0.2 and have been encountered a very
>> strange problem.
>>
>> I use a random director which is defined like this:
>> ----------------------------------------------------
>> director randomlb random {
>>    {
>>        .backend = app1019;
>>        .weight = 15;
>>    }
>>    {
>>        .backend = app1018;
>>        .weight = 15;
>>    }
>>    {
>>        .backend = app1020;
>>        .weight = 15;
>>    }
>>    {
>>        .backend = app1021;
>>        .weight = 15;
>>    }
>> }
>> ----------------------------------------------------
>> The problem is that the BackendReuse rate of app1018 is significantly
>> higher than the other backends.
>> And this is a simple test case.
>> ----------------------------------------------------
>>    526 BackendReuse app1018
>>    ###
>>    988 BackendReuse app1019
>>    ###
>>    561 BackendReuse app1020
>>    573 BackendReuse app1021
>> ----------------------------------------------------
>>
>> What should i do to gain a balanced backendreuse rate for all the
>>backends?
>>
>> Thanks.
>>
>> ---
>> Lusurf
>>
>> _______________________________________________
>> varnish-misc mailing list
>> varnish-misc at varnish-cache.org
>> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>
>_______________________________________________
>varnish-misc mailing list
>varnish-misc at varnish-cache.org
>https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc




More information about the varnish-misc mailing list