Mailing List Archive

VDI_Resolve -> VRT, default behaviour for no healthy() cb
I'm picking up two loose threads from #varnish-hacking:

VDI_Resolve
-----------

I'm working on a director which needs to resolve another (layered) director
argument, so I'd prefer to have basically VDI_Resolve in VRT. Proposed signature:

VCL_BACKEND VRT_Resolve(VRT_CTX, VCL_BACKEND)

the VCL_BACKEND argument would be used instead of bo->director_req.
Also I'd want to move the logging calls to the caller.

avoid director healthy() callback
---------------------------------

To avoid code duplication, I think core code should basically call

VRT_Healthy(VRT_Resolve(ctx, backend));

if there is no healthy callback. IMHO this would make much more sense than just
asserting a director without a healthy callback to be healthy always.

Thx, Nils
_______________________________________________
varnish-dev mailing list
varnish-dev@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev
Re: VDI_Resolve -> VRT, default behaviour for no healthy() cb [ In reply to ]
On 09/05/18 17:28, Nils Goroll wrote:
> VDI_Resolve
> -----------
>
> I'm working on a director which needs to resolve another (layered) director
> argument

for those interested, I've pushed a working prototype to a public repo:

https://code.uplex.de/uplex-varnish/libvmod-cluster
_______________________________________________
varnish-dev mailing list
varnish-dev@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev