• Geoff Simmons's avatar
    Add self-sharding by cookie value. · 6cdb8cdd
    Geoff Simmons authored
    To ensure that health checks from other Varnish instances succeed
    in the self-sharding configuration, move the clause in vcl_recv
    that is executed when remote.ip matches the ACL for cluster members
    to the start of the subroutine.
    
    XXX: currently returns a synthetic 400 response if the configured
    cookie name is not found in the Cookie header (or if there is no
    Cookie header). In a further iteration, we will add an optional
    field defaultKey, which if present sets a string value to be used
    as the sharding key if the key is not found.
    
    XXX: testing this feature has revealed bugs in sharding by key
    (using by=KEY) unless primaryOnly is also set to true. These will
    be fixed in a further iteration.
    6cdb8cdd
Name
Last commit
Last update
..
acl Loading commit data...
architectures Loading commit data...
authentication Loading commit data...
backend-config Loading commit data...
custom-vcl Loading commit data...
externalname Loading commit data...
file-cache Loading commit data...
hello Loading commit data...
namespace Loading commit data...
req-disposition Loading commit data...
rewrite Loading commit data...
self-sharding Loading commit data...
svctypes Loading commit data...
tls Loading commit data...
varnish_pod_template Loading commit data...
README.md Loading commit data...