ComputeRegionBackendServiceRegionBackendServiceFailoverPolicy class

failover_policy block — only meaningful for Internal Passthrough NLBs. Backends are split into primary / failover pools (see ComputeRegionBackendServiceRegionBackendServiceBackend.failover); when the primary pool's healthy fraction drops below failoverRatio, traffic is shifted to the failover pool.

Annotations
  • @immutable

Constructors

ComputeRegionBackendServiceRegionBackendServiceFailoverPolicy({TfArg<bool>? disableConnectionDrainOnFailover, TfArg<bool>? dropTrafficIfUnhealthy, TfArg<double>? failoverRatio})
const

Properties

disableConnectionDrainOnFailover → TfArg<bool>?
If true, connections to the old active pool are not drained on failover. Can be set to true only when protocol is TCP.
final
dropTrafficIfUnhealthy → TfArg<bool>?
If true, drop traffic when no healthy VM is detected in either pool. If false, traffic is spread across all VMs in the primary group as a best-effort fallback.
final
failoverRatio → TfArg<double>?
Health-fraction threshold (0.0-1.0) that triggers failover. L4 LBs only.
final
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
toArgMap() Map<String, Object?>
toString() String
A string representation of this object.
inherited

Operators

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