You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#. **siphash13**: SipHash-1-3. ~50% faster than SipHash-2-4, still DoS-resistant.
210
+
211
+
Example:
212
+
213
+
.. code-block:: yaml
214
+
215
+
policy: consistent_hash
216
+
hash_algorithm: siphash13
217
+
218
+
- **hash_seed0**: The first 64 bits of the hash seed (key) for the **consistent_hash** policy.
219
+
220
+
- For SipHash algorithms, this forms the first half of the 128-bit cryptographic key (k0)
221
+
- For future 64-bit hash algorithms, this is the full seed value
222
+
223
+
Value must be specified as a decimal integer. Default is **0**.
224
+
225
+
Example:
226
+
227
+
.. code-block:: yaml
228
+
229
+
policy: consistent_hash
230
+
hash_seed0: 12345678901234567
231
+
232
+
- **hash_seed1**: The second 64 bits of the hash seed (key) for the **consistent_hash** policy.
233
+
234
+
- For SipHash algorithms, this forms the second half of the 128-bit cryptographic key (k1)
235
+
- For future 64-bit hash algorithms, this value is ignored
236
+
237
+
Value must be specified as a decimal integer. Default is **0**.
238
+
239
+
Example:
240
+
241
+
.. code-block:: yaml
242
+
243
+
policy: consistent_hash
244
+
hash_seed0: 12345678901234567
245
+
hash_seed1: 9876543210987654321
246
+
247
+
- **hash_replicas**: The number of virtual nodes (replicas) per host on the consistent hash ring for
248
+
the **consistent_hash** policy.
249
+
250
+
Increasing the replica count improves the distribution of requests across hosts but uses more memory.
251
+
Must be greater than 0. Default is **1024**.
252
+
253
+
Example:
254
+
255
+
.. code-block:: yaml
256
+
257
+
policy: consistent_hash
258
+
hash_replicas: 2048
259
+
204
260
- **go_direct**: A boolean value indicating whether a transaction may bypass proxies and go direct to the origin. Defaults to **true**
205
261
- **parent_is_proxy**: A boolean value which indicates if the groups of hosts are proxy caches or origins. **true** (default) means all the hosts used in the remap are |TS| caches. **false** means the hosts are origins that the next hop strategies may use for load balancing and/or failover.
206
262
- **cache_peer_result**: A boolean value that is only used when the **policy** is 'consistent_hash' and a **peering_ring** mode is used for the strategy. When set to true, the default, all responses from upstream and peer endpoints are allowed to be cached. Setting this to false will disable caching responses received from a peer host. Only responses from upstream origins or parents will be cached for this strategy.
0 commit comments