• Geoff Simmons's avatar
    Change the sematics of the defaultKey field for self-sharding by cookie. · 5e7899ee
    Geoff Simmons authored
    The field is still optional, but if no default key is specified, then
    it is implicitly the empty string. We no longer support a use case
    in which an error response is returned for sharding by key if the
    key is missing from the request. This will also be the case when
    we support sharding by other keys besides cookies, such as request
    headers.
    
    This makes it possible to move the clause in vcl_recv that includes
    the synthetic response to health checks from other shard instances
    to come after the code for primaryOnly. That had been moved to the
    start of vcl_recv, because health checks were failing in the shard
    by cookie case without a default key (since health probes have no
    Cookie header). But the result was that primaryOnly code did not
    work as expected. Now we have moved that clause back to where it
    was previously -- health probes now don't fail in the shard by
    cookie case, because there is always a default key.
    5e7899ee
Name
Last commit
Last update
..
Makefile Loading commit data...
README.md Loading commit data...
cafe-cookie.vtc Loading commit data...
cafe.vtc Loading commit data...
primary-only-by-clientid.yaml Loading commit data...
primary-only.yaml Loading commit data...
self-sharding-cfg.yaml Loading commit data...
shard-by-digest.yaml Loading commit data...
shard-by-key.yaml Loading commit data...
shard-by-url.yaml Loading commit data...
shard-conditions.yaml Loading commit data...
values-primary-only-by-clientid.yaml Loading commit data...
values-primary-only.yaml Loading commit data...
values-self-sharding.yaml Loading commit data...
values-shard-by-cookie.yaml Loading commit data...
values-shard-by-digest.yaml Loading commit data...
values-shard-by-key.yaml Loading commit data...
values-shard-by-url.yaml Loading commit data...
values-shard-conditions.yaml Loading commit data...
verify-cookie.sh Loading commit data...
verify.sh Loading commit data...