hash_policy.envoy¶
Simplest configuration:
[hash_policy#0]
type = envoy
svcmgr -s <svcname> set --kw hash_policy#0.type=envoy
connection_source_ip¶
scopable | False |
required | False |
provisioning | False |
default | None |
inheritance | leaf > head |
scope order | specific > generic |
Hash on source IP address.
cookie_name¶
scopable | False |
required | False |
provisioning | False |
default | None |
inheritance | leaf > head |
scope order | specific > generic |
The name of the cookie that will be used to obtain the hash key. If the cookie is not present and ttl below is not set, no hash will be produced.
cookie_path¶
scopable | False |
required | False |
provisioning | False |
default | None |
inheritance | leaf > head |
scope order | specific > generic |
The name of the path for the cookie. If no path is specified here, no path will be set for the cookie.
cookie_ttl¶
scopable | False |
required | False |
provisioning | False |
default | None |
inheritance | leaf > head |
scope order | specific > generic |
convert | duration |
If specified, a cookie with the TTL will be generated if the cookie is not present. If the TTL is present and zero, the generated cookie will be a session cookie.
header_header_name¶
scopable | False |
required | False |
provisioning | False |
default | None |
inheritance | leaf > head |
scope order | specific > generic |
The name of the request header that will be used to obtain the hash key. If the request header is not present, no hash will be produced.
terminal¶
scopable | False |
required | False |
provisioning | False |
default | None |
inheritance | leaf > head |
scope order | specific > generic |
convert | boolean |
Shortcircuits the hash computing. This field provides a fallback style of configuration: if a terminal policy doesn't work, fallback to rest of the policy list. It saves time when the terminal policy works.