scalingMode property
(Optional, Beta)
The scaling mode for the reservation. If the field is present but maxSlots is not present,
requests will be rejected with error code google.rpc.Code.INVALID_ARGUMENT.
Enum values:
SCALING_MODE_UNSPECIFIED: Default value of ScalingMode.
AUTOSCALE_ONLY: The reservation will scale up only using slots from autoscaling. It will
not use any idle slots even if there may be some available. The upper limit that autoscaling
can scale up to will be maxSlots - baseline. For example, if maxSlots is 1000, baseline is 200
and customer sets ScalingMode to AUTOSCALE_ONLY, then autoscalerg will scale up to 800 slots
and no idle slots will be used. Please note, in this mode, the ignoreIdleSlots field must be
set to true. Otherwise the request will be rejected with error code
google.rpc.Code.INVALID_ARGUMENT.
IDLE_SLOTS_ONLY: The reservation will scale up using only idle slots contributed by other
reservations or from unassigned commitments. If no idle slots are available it will not scale
up further. If the idle slots which it is using are reclaimed by the contributing reservation(s)
it may be forced to scale down. The max idle slots the reservation can be maxSlots - baseline
capacity. For example, if maxSlots is 1000, baseline is 200 and customer sets ScalingMode to
IDLE_SLOTS_ONLY, 1. if there are 1000 idle slots available in other reservations, the
reservation will scale up to 1000 slots with 200 baseline and 800 idle slots. 2. if there are
500 idle slots available in other reservations, the reservation will scale up to 700 slots with
200 baseline and 300 idle slots. Please note, in this mode, the reservation might not be able to
scale up to maxSlots. Please note, in this mode, the ignoreIdleSlots field must be set to false.
Otherwise the request will be rejected with error code google.rpc.Code.INVALID_ARGUMENT
ALL_SLOTS: The reservation will scale up using all slots available to it. It will use idle slots
contributed by other reservations or from unassigned commitments first. If no idle slots are
available it will scale up using autoscaling. For example, if maxSlots is 1000, baseline is 200
and customer sets ScalingMode to ALL_SLOTS, 1. if there are 800 idle slots available in other
reservations, the reservation will scale up to 1000 slots with 200 baseline and 800 idle slots. 2.
if there are 500 idle slots available in other reservations, the reservation will scale up to 1000
slots with 200 baseline, 500 idle slots and 300 autoscaling slots. 3. if there are no idle slots
available in other reservations, it will scale up to 1000 slots with 200 baseline and 800
autoscaling slots. Please note, in this mode, the ignoreIdleSlots field must be set to false.
Otherwise the request will be rejected with error code google.rpc.Code.INVALID_ARGUMENT.
Possible values are: SCALING_MODE_UNSPECIFIED, AUTOSCALE_ONLY, IDLE_SLOTS_ONLY, ALL_SLOTS.
Implementation
final pulumi.Input<String?>? scalingMode;