maxSlots property
The overall max slots for the reservation, covering slot_capacity (baseline), idle slots (if ignore_idle_slots is false) and scaled slots.
If present, the reservation won't use more than the specified number of
slots, even if there is demand and supply (from idle slots). NOTE: capping
a reservation's idle slot usage is best effort and its usage may exceed
the max_slots value. However, in terms of autoscale.current_slots (which
accounts for the additional added slots), it will never exceed the
max_slots - baseline. This field must be set together with the
scaling_mode enum value, otherwise the request will be rejected with error
code google.rpc.Code.INVALID_ARGUMENT
. If the max_slots and scaling_mode
are set, the autoscale or autoscale.max_slots field must be unset.
Otherwise the request will be rejected with error code
google.rpc.Code.INVALID_ARGUMENT
. However, the autoscale field may still
be in the output. The autopscale.max_slots will always show as 0 and the
autoscaler.current_slots will represent the current slots from autoscaler
excluding idle slots. For example, if the max_slots is 1000 and
scaling_mode is AUTOSCALE_ONLY, then in the output, the
autoscaler.max_slots will be 0 and the autoscaler.current_slots may be any
value between 0 and 1000. If the max_slots is 1000, scaling_mode is
ALL_SLOTS, the baseline is 100 and idle slots usage is 200, then in the
output, the autoscaler.max_slots will be 0 and the
autoscaler.current_slots will not be higher than 700. If the max_slots is
1000, scaling_mode is IDLE_SLOTS_ONLY, then in the output, the autoscaler
field will be null. If the max_slots and scaling_mode are set, then the
ignore_idle_slots field must be aligned with the scaling_mode enum
value.(See details in ScalingMode comments). Otherwise the request will be
rejected with error code google.rpc.Code.INVALID_ARGUMENT
. Please note,
the max_slots is for user to manage the part of slots greater than the
baseline. Therefore, we don't allow users to set max_slots smaller or
equal to the baseline as it will not be meaningful. If the field is
present and slot_capacity>=max_slots, requests will be rejected with
error code google.rpc.Code.INVALID_ARGUMENT
. Please note that if
max_slots is set to 0, we will treat it as unset. Customers can set
max_slots to 0 and set scaling_mode to SCALING_MODE_UNSPECIFIED to disable
the max_slots feature.
Optional.
Implementation
core.String? maxSlots;