Preventing dup backend names with dynamic backends in VMODs

Dridi Boukelmoune dridi at varni.sh
Thu Nov 12 18:44:56 CET 2015


On Wed, Nov 4, 2015 at 11:15 AM, Poul-Henning Kamp <phk at phk.freebsd.dk> wrote:
> --------
> In message <CABaBnj5Bs+6bLDej6=MhoXQx4Eafwvz5qgB9EsOOEHk+4JhGqw at mail.gmail.com>, Kacper Wyso
> cki writes:
>
>>Oh. I hadn't seen req.backend.name. I guess the type conversion is a
>>little counter to my intuition too.
>
> I'm not very happy about "req.backend.name", it is *very* magic and not
> general to any other backend anywhere else in VCL.
>
> The real fix would be to allow standardized (ie: builtin) methods on the
> VCL_* types themselves, so that one could do things like
>
>
>         $backend.ip()
>         $backend.name()
>
> etc.
>
> Implementing it will take some VCC hacking

If needed I can take this one once I get enough bandwidth and more
precise requirements, I'm getting used to dealing with VCC and
backends :)

Dridi



More information about the varnish-dev mailing list