hashpolicy.envoy¶
Simplest configuration:
[hashpolicy#0]
type = envoy
svcmgr -s <svcname> set --kw hashpolicy#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.
comment¶
scopable |
False |
required |
False |
provisioning |
False |
default |
|
inheritance |
leaf > head |
scope order |
specific > generic |
Helps users understand the role of the service and resources, which is nice to on-call support people having to operate on a service they are not usually responsible for.