Re: Best practice for caching scenario with different backend servers but same content

2021-08-09 Thread Geoff Simmons
On 8/9/21 14:49, Geoff Simmons wrote: > > A hash algorithm computes a number h(b) for a backend b, ... Sorry, this should have been more like h(bereq), meaning that the number is computed from features of the request. From that you get to the choice of a backend. The Varnish hash director uses

Re: Best practice for caching scenario with different backend servers but same content

2021-08-09 Thread Geoff Simmons
Hello, The best way to answer these questions is to start with the last one: On 8/9/21 10:50, Hamidreza Hosseini wrote: > > 6. conceptual question: > > 1.What's the exact difference between hash and shard directive and when > should we use which one? > the Doc says when the backend changes

Re: Best practice for caching scenario with different backend servers but same content

2021-08-09 Thread Hamidreza Hosseini
Hi, This is my configuration based on Doc and sample configuration, I would appreciate if you answer my questions: ``` probe myprobe { .request = "HEAD / HTTP/1.1" "Connection: close" "User-Agent: Varnish Health Probe"; .timeout = 1s; .interval = 5s; .window =