Class: Google::Apis::ComputeAlpha::Subsetting
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::Subsetting
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_alpha/classes.rb,
lib/google/apis/compute_alpha/representations.rb,
lib/google/apis/compute_alpha/representations.rb
Overview
Subsetting configuration for this BackendService. Currently this is applicable only for Internal TCP/UDP load balancing, Internal HTTP(S) load balancing and Traffic Director.
Instance Attribute Summary collapse
-
#policy ⇒ String
Corresponds to the JSON property
policy. -
#subset_size ⇒ Fixnum
The number of backends per backend group assigned to each proxy instance or each service mesh client.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Subsetting
constructor
A new instance of Subsetting.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Subsetting
Returns a new instance of Subsetting.
52108 52109 52110 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 52108 def initialize(**args) update!(**args) end |
Instance Attribute Details
#policy ⇒ String
Corresponds to the JSON property policy
52092 52093 52094 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 52092 def policy @policy end |
#subset_size ⇒ Fixnum
The number of backends per backend group assigned to each proxy instance or
each service mesh client. An input parameter to the
CONSISTENT_HASH_SUBSETTING algorithm. Can only be set if policy is set to
CONSISTENT_HASH_SUBSETTING. Can only be set if load balancing scheme is
INTERNAL_MANAGED or INTERNAL_SELF_MANAGED. subset_size is optional for
Internal HTTP(S) load balancing and required for Traffic Director. If you do
not provide this value, Cloud Load Balancing will calculate it dynamically to
optimize the number of proxies/clients visible to each backend and vice versa.
Must be greater than 0. If subset_size is larger than the number of backends/
endpoints, then subsetting is disabled.
Corresponds to the JSON property subsetSize
52106 52107 52108 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 52106 def subset_size @subset_size end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
52113 52114 52115 52116 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 52113 def update!(**args) @policy = args[:policy] if args.key?(:policy) @subset_size = args[:subset_size] if args.key?(:subset_size) end |