Class: Google::Apis::ComputeBeta::BackendServiceConnectionTrackingPolicy
- Inherits:
-
Object
- Object
- Google::Apis::ComputeBeta::BackendServiceConnectionTrackingPolicy
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- generated/google/apis/compute_beta/classes.rb,
generated/google/apis/compute_beta/representations.rb,
generated/google/apis/compute_beta/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.
3734 3735 3736 |
# File 'generated/google/apis/compute_beta/classes.rb', line 3734 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
3732 3733 3734 |
# File 'generated/google/apis/compute_beta/classes.rb', line 3732 def connection_persistence_on_unhealthy_backends @connection_persistence_on_unhealthy_backends end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3739 3740 3741 |
# File 'generated/google/apis/compute_beta/classes.rb', line 3739 def update!(**args) @connection_persistence_on_unhealthy_backends = args[:connection_persistence_on_unhealthy_backends] if args.key?(:connection_persistence_on_unhealthy_backends) end |