TargetPoolSessionAffinity

enum TargetPoolSessionAffinity : Enum<TargetPoolSessionAffinity> , ConvertibleToJava<TargetPoolSessionAffinity>

Session affinity option, must be one of the following values: NONE: Connections from the same client IP may go to any instance in the pool. CLIENT_IP: Connections from the same client IP will go to the same instance in the pool while that instance remains healthy. CLIENT_IP_PROTO: Connections from the same client IP with the same IP protocol will go to the same instance in the pool while that instance remains healthy.

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(): TargetPoolSessionAffinity
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: TargetPoolSessionAffinity
Link copied to clipboard
Link copied to clipboard