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

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

Option to specify if an unhealthy IG/NEG should be considered for global load balancing and traffic routing.

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

Namespace

Google \ Cloud \ NetworkServices \ V1 \ ServiceLbPolicy

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ enable bool

Optional. If set to 'True', an unhealthy IG/NEG will be set as drained. - An IG/NEG is considered unhealthy if less than 25% of the instances/endpoints in the IG/NEG are healthy. - This option will never result in draining more than 50% of the configured IGs/NEGs for the Backend Service.

getEnable

Optional. If set to 'True', an unhealthy IG/NEG will be set as drained.

  • An IG/NEG is considered unhealthy if less than 25% of the instances/endpoints in the IG/NEG are healthy.
  • This option will never result in draining more than 50% of the configured IGs/NEGs for the Backend Service.
Returns
Type Description
bool

setEnable

Optional. If set to 'True', an unhealthy IG/NEG will be set as drained.

  • An IG/NEG is considered unhealthy if less than 25% of the instances/endpoints in the IG/NEG are healthy.
  • This option will never result in draining more than 50% of the configured IGs/NEGs for the Backend Service.
Parameter
Name Description
var bool
Returns
Type Description
$this