BackendServiceFailoverPolicy class

For load balancers that have configurable failover: Internal passthrough Network Load Balancers and external passthrough Network Load Balancers.

On failover or failback, this field indicates whether connection draining will be honored. Google Cloud has a fixed connection draining timeout of 10 minutes. A setting of true terminates existing TCP connections to the active pool during failover and failback, immediately draining traffic. A setting of false allows existing TCP connections to persist, even on VMs no longer in the active pool, for up to the duration of the connection draining timeout (10 minutes).

Constructors

BackendServiceFailoverPolicy({bool? disableConnectionDrainOnFailover, bool? dropTrafficIfUnhealthy, double? failoverRatio})
BackendServiceFailoverPolicy.fromJson(Map json_)

Properties

disableConnectionDrainOnFailover bool?
This can be set to true only if the protocol is TCP.
getter/setter pair
dropTrafficIfUnhealthy bool?
If set to true, connections to the load balancer are dropped when all primary and all backup backend VMs are unhealthy.If set to false, connections are distributed among all primary VMs when all primary and all backup backend VMs are unhealthy.
getter/setter pair
failoverRatio double?
The value of the field must be in the range [0, 1].
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited