RegionBackendServiceSessionAffinity

enum RegionBackendServiceSessionAffinity : Enum<RegionBackendServiceSessionAffinity> , ConvertibleToJava<RegionBackendServiceSessionAffinity>

Type of session affinity to use. The default is NONE. Only NONE and HEADER_FIELD are supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true. For more details, see: Session Affinity.

Entries

Link copied to clipboard

2-tuple hash on packet's source and destination IP addresses. Connections from the same source IP address to the same destination IP address will be served by the same backend VM while that VM remains healthy.

Link copied to clipboard

1-tuple hash only on packet's source IP address. Connections from the same source IP address will be served by the same backend VM while that VM remains healthy. This option can only be used for Internal TCP/UDP Load Balancing.

Link copied to clipboard

5-tuple hash on packet's source and destination IP addresses, IP protocol, and source and destination ports. Connections for the same IP protocol from the same source IP address and port to the same destination IP address and port will be served by the same backend VM while that VM remains healthy. This option cannot be used for HTTP(S) load balancing.

Link copied to clipboard

3-tuple hash on packet's source and destination IP addresses, and IP protocol. Connections for the same IP protocol from the same source IP address to the same destination IP address will be served by the same backend VM while that VM remains healthy. This option cannot be used for HTTP(S) load balancing.

Link copied to clipboard

Hash based on a cookie generated by the L7 loadbalancer. Only valid for HTTP(S) load balancing.

Link copied to clipboard

The hash is based on a user specified header field.

Link copied to clipboard

The hash is based on a user provided cookie.

Link copied to clipboard

No session affinity. Connections from the same client IP may go to any instance in the pool.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun toJava(): RegionBackendServiceSessionAffinity
Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.

Properties

Link copied to clipboard
val javaValue: RegionBackendServiceSessionAffinity
Link copied to clipboard
Link copied to clipboard