Class: Google::Apis::ComputeAlpha::BackendServiceConnectionTrackingPolicy
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::BackendServiceConnectionTrackingPolicy
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- generated/google/apis/compute_alpha/classes.rb,
generated/google/apis/compute_alpha/representations.rb,
generated/google/apis/compute_alpha/representations.rb
Overview
Connection Tracking configuration for this BackendService.
Instance Attribute Summary collapse
-
#connection_persistence_on_unhealthy_backends ⇒ String
Specifies connection persistence when backends are unhealthy.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BackendServiceConnectionTrackingPolicy
constructor
A new instance of BackendServiceConnectionTrackingPolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BackendServiceConnectionTrackingPolicy
Returns a new instance of BackendServiceConnectionTrackingPolicy.
3990 3991 3992 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 3990 def initialize(**args) update!(**args) end |
Instance Attribute Details
#connection_persistence_on_unhealthy_backends ⇒ String
Specifies connection persistence when backends are unhealthy. The default
value is DEFAULT_FOR_PROTOCOL.
If set to DEFAULT_FOR_PROTOCOL, the existing connections persist on unhealthy
backends only for connection-oriented protocols (TCP and SCTP) and only if the
Tracking Mode is PER_CONNECTION (default tracking mode) or the Session
Affinity is configured for 5-tuple. They do not persist for UDP.
If set to NEVER_PERSIST, after a backend becomes unhealthy, the existing
connections on the unhealthy backend are never persisted on the unhealthy
backend. They are always diverted to newly selected healthy backends (unless
all backends are unhealthy).
If set to ALWAYS_PERSIST, existing connections always persist on unhealthy
backends regardless of protocol and session affinity. It is generally not
recommended to use this mode overriding the default.
Corresponds to the JSON property connectionPersistenceOnUnhealthyBackends
3988 3989 3990 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 3988 def connection_persistence_on_unhealthy_backends @connection_persistence_on_unhealthy_backends end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3995 3996 3997 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 3995 def update!(**args) @connection_persistence_on_unhealthy_backends = args[:connection_persistence_on_unhealthy_backends] if args.key?(:connection_persistence_on_unhealthy_backends) end |