#[non_exhaustive]pub struct EphemeralStorageLocalSsdConfig {
pub local_ssd_count: i32,
pub data_cache_count: i32,
/* private fields */
}Expand description
EphemeralStorageLocalSsdConfig contains configuration for the node ephemeral storage using Local SSDs.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
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.
data_cache_count: i32Number of local SSDs to use for GKE Data Cache.
Implementations§
Source§impl EphemeralStorageLocalSsdConfig
impl EphemeralStorageLocalSsdConfig
pub fn new() -> Self
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.
Sourcepub fn set_data_cache_count<T: Into<i32>>(self, v: T) -> Self
pub fn set_data_cache_count<T: Into<i32>>(self, v: T) -> Self
Sets the value of data_cache_count.
Trait Implementations§
Source§impl Clone for EphemeralStorageLocalSsdConfig
impl Clone for EphemeralStorageLocalSsdConfig
Source§fn clone(&self) -> EphemeralStorageLocalSsdConfig
fn clone(&self) -> EphemeralStorageLocalSsdConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for EphemeralStorageLocalSsdConfig
impl Default for EphemeralStorageLocalSsdConfig
Source§fn default() -> EphemeralStorageLocalSsdConfig
fn default() -> EphemeralStorageLocalSsdConfig
Returns the “default value” for a type. Read more
Source§impl PartialEq for EphemeralStorageLocalSsdConfig
impl PartialEq for EphemeralStorageLocalSsdConfig
Source§fn eq(&self, other: &EphemeralStorageLocalSsdConfig) -> bool
fn eq(&self, other: &EphemeralStorageLocalSsdConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EphemeralStorageLocalSsdConfig
Auto Trait Implementations§
impl Freeze for EphemeralStorageLocalSsdConfig
impl RefUnwindSafe for EphemeralStorageLocalSsdConfig
impl Send for EphemeralStorageLocalSsdConfig
impl Sync for EphemeralStorageLocalSsdConfig
impl Unpin for EphemeralStorageLocalSsdConfig
impl UnwindSafe for EphemeralStorageLocalSsdConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more