• Nils Goroll's avatar
    fix resolve= parameter for self-sharding · 49650e70
    Nils Goroll authored
    in vcl_backend_response {} and vcl_backend_error {} we test if
    `bereq.backend == vk8s_cluster.backend(resolve=LAZY)`. With the
    current code, this condition will never evaluate true, because
    `resolve=NOW` will make the shard director return the "real" (VBE)
    backend.
    
    With this patch, the net effect, the chosen cluster varnish backend,
    should still be the same, except for the rare race event that the
    backend becomes unhealthy between the time the vcl code executes and
    when the backend connection is made. We already account for this race
    by setting `req.hash_ignore_busy` in vcl_revc {}.
    49650e70
Name
Last commit
Last update
..
apis Loading commit data...
client Loading commit data...
controller Loading commit data...
haproxy Loading commit data...
interfaces Loading commit data...
update Loading commit data...
varnish Loading commit data...