public static enum DistributionPolicy.TargetShape extends Enum<DistributionPolicy.TargetShape> implements com.google.protobuf.ProtocolMessageEnum
The distribution shape to which the group converges either proactively or on resize events (depending on the value set in updatePolicy.instanceRedistributionType).Protobuf enum
google.cloud.compute.v1.DistributionPolicy.TargetShape| Enum Constant and Description |
|---|
ANY
The group picks zones for creating VM instances to fulfill the requested number of VMs within present resource constraints and to maximize utilization of unused zonal reservations.
|
BALANCED
The group prioritizes acquisition of resources, scheduling VMs in zones where resources are available while distributing VMs as evenly as possible across selected zones to minimize the impact of zonal failure.
|
EVEN
The group schedules VM instance creation and deletion to achieve and maintain an even number of managed instances across the selected zones.
|
UNDEFINED_TARGET_SHAPE
A value indicating that the enum field is not set.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
ANY_VALUE
The group picks zones for creating VM instances to fulfill the requested number of VMs within present resource constraints and to maximize utilization of unused zonal reservations.
|
static int |
BALANCED_VALUE
The group prioritizes acquisition of resources, scheduling VMs in zones where resources are available while distributing VMs as evenly as possible across selected zones to minimize the impact of zonal failure.
|
static int |
EVEN_VALUE
The group schedules VM instance creation and deletion to achieve and maintain an even number of managed instances across the selected zones.
|
static int |
UNDEFINED_TARGET_SHAPE_VALUE
A value indicating that the enum field is not set.
|
| Modifier and Type | Method and Description |
|---|---|
static DistributionPolicy.TargetShape |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<DistributionPolicy.TargetShape> |
internalGetValueMap() |
static DistributionPolicy.TargetShape |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static DistributionPolicy.TargetShape |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static DistributionPolicy.TargetShape |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DistributionPolicy.TargetShape[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DistributionPolicy.TargetShape UNDEFINED_TARGET_SHAPE
A value indicating that the enum field is not set.
UNDEFINED_TARGET_SHAPE = 0;public static final DistributionPolicy.TargetShape ANY
The group picks zones for creating VM instances to fulfill the requested number of VMs within present resource constraints and to maximize utilization of unused zonal reservations. Recommended for batch workloads that do not require high availability.
ANY = 64972;public static final DistributionPolicy.TargetShape BALANCED
The group prioritizes acquisition of resources, scheduling VMs in zones where resources are available while distributing VMs as evenly as possible across selected zones to minimize the impact of zonal failure. Recommended for highly available serving workloads.
BALANCED = 468409608;public static final DistributionPolicy.TargetShape EVEN
The group schedules VM instance creation and deletion to achieve and maintain an even number of managed instances across the selected zones. The distribution is even when the number of managed instances does not differ by more than 1 between any two zones. Recommended for highly available serving workloads.
EVEN = 2140442;public static final DistributionPolicy.TargetShape UNRECOGNIZED
public static final int UNDEFINED_TARGET_SHAPE_VALUE
A value indicating that the enum field is not set.
UNDEFINED_TARGET_SHAPE = 0;public static final int ANY_VALUE
The group picks zones for creating VM instances to fulfill the requested number of VMs within present resource constraints and to maximize utilization of unused zonal reservations. Recommended for batch workloads that do not require high availability.
ANY = 64972;public static final int BALANCED_VALUE
The group prioritizes acquisition of resources, scheduling VMs in zones where resources are available while distributing VMs as evenly as possible across selected zones to minimize the impact of zonal failure. Recommended for highly available serving workloads.
BALANCED = 468409608;public static final int EVEN_VALUE
The group schedules VM instance creation and deletion to achieve and maintain an even number of managed instances across the selected zones. The distribution is even when the number of managed instances does not differ by more than 1 between any two zones. Recommended for highly available serving workloads.
EVEN = 2140442;public static DistributionPolicy.TargetShape[] values()
for (DistributionPolicy.TargetShape c : DistributionPolicy.TargetShape.values()) System.out.println(c);
public static DistributionPolicy.TargetShape valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static DistributionPolicy.TargetShape valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static DistributionPolicy.TargetShape forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<DistributionPolicy.TargetShape> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static DistributionPolicy.TargetShape valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 Google LLC. All rights reserved.