#[non_exhaustive]pub struct EphemeralStorageLocalSsdConfig {
pub local_ssd_count: i32,
}Expand description
EphemeralStorageLocalSsdConfig contains configuration for the node ephemeral storage using Local SSDs.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.local_ssd_count: i32Number of local SSDs to use to back ephemeral storage. Uses NVMe interfaces.
A zero (or unset) value has different meanings depending on machine type being used:
. For pre-Gen3 machines, which support flexible numbers of local ssds, zero (or unset) means to disable using local SSDs as ephemeral storage. The limit for this value is dependent upon the maximum number of disk available on a machine per zone. See: https://cloud.google.com/compute/docs/disks/local-ssd for more information. . For Gen3 machines which dictate a specific number of local ssds, zero (or unset) means to use the default number of local ssds that goes with that machine type. For example, for a c3-standard-8-lssd machine, 2 local ssds would be provisioned. For c3-standard-8 (which doesn’t support local ssds), 0 will be provisioned. See https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds for more info.
Implementations§
Source§impl EphemeralStorageLocalSsdConfig
impl EphemeralStorageLocalSsdConfig
Sourcepub fn set_local_ssd_count<T: Into<i32>>(self, v: T) -> Self
pub fn set_local_ssd_count<T: Into<i32>>(self, v: T) -> Self
Sets the value of local_ssd_count.
Trait Implementations§
Source§impl Clone for EphemeralStorageLocalSsdConfig
impl Clone for EphemeralStorageLocalSsdConfig
Source§fn clone(&self) -> EphemeralStorageLocalSsdConfig
fn clone(&self) -> EphemeralStorageLocalSsdConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for EphemeralStorageLocalSsdConfig
impl Default for EphemeralStorageLocalSsdConfig
Source§fn default() -> EphemeralStorageLocalSsdConfig
fn default() -> EphemeralStorageLocalSsdConfig
Source§impl<'de> Deserialize<'de> for EphemeralStorageLocalSsdConfig
impl<'de> Deserialize<'de> for EphemeralStorageLocalSsdConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for EphemeralStorageLocalSsdConfig
impl PartialEq for EphemeralStorageLocalSsdConfig
Source§fn eq(&self, other: &EphemeralStorageLocalSsdConfig) -> bool
fn eq(&self, other: &EphemeralStorageLocalSsdConfig) -> bool
self and other values to be equal, and is used by ==.