Google Cloud Network Services V1 Client - Class FailoverConfig (0.5.0)

Reference documentation and code samples for the Google Cloud Network Services V1 Client class FailoverConfig.

Option to specify health based failover behavior.

This is not related to Network load balancer FailoverPolicy.

Generated from protobuf message google.cloud.networkservices.v1.ServiceLbPolicy.FailoverConfig

Namespace

Google \ Cloud \ NetworkServices \ V1 \ ServiceLbPolicy

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ failover_health_threshold int

Optional. The percentage threshold that a load balancer will begin to send traffic to failover backends. If the percentage of endpoints in a MIG/NEG is smaller than this value, traffic would be sent to failover backends if possible. This field should be set to a value between 1 and 99. The default value is 50 for Global external HTTP(S) load balancer (classic) and Proxyless service mesh, and 70 for others.

getFailoverHealthThreshold

Optional. The percentage threshold that a load balancer will begin to send traffic to failover backends. If the percentage of endpoints in a MIG/NEG is smaller than this value, traffic would be sent to failover backends if possible. This field should be set to a value between 1 and 99. The default value is 50 for Global external HTTP(S) load balancer (classic) and Proxyless service mesh, and 70 for others.

Returns
Type Description
int

setFailoverHealthThreshold

Optional. The percentage threshold that a load balancer will begin to send traffic to failover backends. If the percentage of endpoints in a MIG/NEG is smaller than this value, traffic would be sent to failover backends if possible. This field should be set to a value between 1 and 99. The default value is 50 for Global external HTTP(S) load balancer (classic) and Proxyless service mesh, and 70 for others.

Parameter
Name Description
var int
Returns
Type Description
$this