#[non_exhaustive]pub struct LinuxNodeConfig {
pub sysctls: HashMap<String, String>,
pub cgroup_mode: CgroupMode,
pub hugepages: Option<HugepagesConfig>,
}Expand description
Parameters that can be configured on Linux nodes.
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.sysctls: HashMap<String, String>The Linux kernel parameters to be applied to the nodes and all pods running on the nodes.
The following parameters are supported.
net.core.busy_poll net.core.busy_read net.core.netdev_max_backlog net.core.rmem_max net.core.wmem_default net.core.wmem_max net.core.optmem_max net.core.somaxconn net.ipv4.tcp_rmem net.ipv4.tcp_wmem net.ipv4.tcp_tw_reuse kernel.shmmni kernel.shmmax kernel.shmall
cgroup_mode: CgroupModecgroup_mode specifies the cgroup mode to be used on the node.
hugepages: Option<HugepagesConfig>Optional. Amounts for 2M and 1G hugepages
Implementations§
Source§impl LinuxNodeConfig
impl LinuxNodeConfig
Sourcepub fn set_cgroup_mode<T: Into<CgroupMode>>(self, v: T) -> Self
pub fn set_cgroup_mode<T: Into<CgroupMode>>(self, v: T) -> Self
Sets the value of cgroup_mode.
Sourcepub fn set_hugepages<T: Into<Option<HugepagesConfig>>>(self, v: T) -> Self
pub fn set_hugepages<T: Into<Option<HugepagesConfig>>>(self, v: T) -> Self
Sets the value of hugepages.
Sourcepub fn set_sysctls<T, K, V>(self, v: T) -> Self
pub fn set_sysctls<T, K, V>(self, v: T) -> Self
Sets the value of sysctls.
Trait Implementations§
Source§impl Clone for LinuxNodeConfig
impl Clone for LinuxNodeConfig
Source§fn clone(&self) -> LinuxNodeConfig
fn clone(&self) -> LinuxNodeConfig
Returns a copy 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 Debug for LinuxNodeConfig
impl Debug for LinuxNodeConfig
Source§impl Default for LinuxNodeConfig
impl Default for LinuxNodeConfig
Source§fn default() -> LinuxNodeConfig
fn default() -> LinuxNodeConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LinuxNodeConfigwhere
LinuxNodeConfig: Default,
impl<'de> Deserialize<'de> for LinuxNodeConfigwhere
LinuxNodeConfig: Default,
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for LinuxNodeConfig
impl Message for LinuxNodeConfig
Source§impl PartialEq for LinuxNodeConfig
impl PartialEq for LinuxNodeConfig
Source§impl Serialize for LinuxNodeConfig
impl Serialize for LinuxNodeConfig
impl StructuralPartialEq for LinuxNodeConfig
Auto Trait Implementations§
impl Freeze for LinuxNodeConfig
impl RefUnwindSafe for LinuxNodeConfig
impl Send for LinuxNodeConfig
impl Sync for LinuxNodeConfig
impl Unpin for LinuxNodeConfig
impl UnwindSafe for LinuxNodeConfig
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