#[repr(i32)]pub enum ScaleTier {
Unspecified = 0,
Basic = 1,
Standard1 = 2,
Premium1 = 3,
BasicGpu = 4,
BasicTpu = 5,
Custom = 6,
}Expand description
Required. Specifies the machine types, the number of replicas for workers and parameter servers.
Variants§
Unspecified = 0
Unspecified Scale Tier.
Basic = 1
A single worker instance. This tier is suitable for learning how to use Cloud ML, and for experimenting with new models using small datasets.
Standard1 = 2
Many workers and a few parameter servers.
Premium1 = 3
A large number of workers with many parameter servers.
BasicGpu = 4
A single worker instance with a K80 GPU.
BasicTpu = 5
A single worker instance with a Cloud TPU.
Custom = 6
The CUSTOM tier is not a set tier, but rather enables you to use your own cluster specification. When you use this tier, set values to configure your processing cluster according to these guidelines:
- You must set
ExecutionTemplate.masterTypeto specify the type of machine to use for your master node. This is the only required setting.
Implementations§
Source§impl ScaleTier
impl ScaleTier
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.