#[non_exhaustive]pub struct LinuxNodeConfig {
pub sysctls: HashMap<String, String>,
pub cgroup_mode: CgroupMode,
pub hugepages: Option<HugepagesConfig>,
/* private fields */
}Expand description
Parameters that can be configured on Linux nodes.
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.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.rmem_default 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 net.netfilter.nf_conntrack_max net.netfilter.nf_conntrack_buckets net.netfilter.nf_conntrack_tcp_timeout_close_wait net.netfilter.nf_conntrack_tcp_timeout_time_wait net.netfilter.nf_conntrack_tcp_timeout_established net.netfilter.nf_conntrack_acct kernel.shmmni kernel.shmmax kernel.shmall vm.max_map_count
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
pub fn new() -> Self
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.
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>(self, v: T) -> Selfwhere
T: Into<HugepagesConfig>,
pub fn set_hugepages<T>(self, v: T) -> Selfwhere
T: Into<HugepagesConfig>,
Sets the value of hugepages.
Sourcepub fn set_or_clear_hugepages<T>(self, v: Option<T>) -> Selfwhere
T: Into<HugepagesConfig>,
pub fn set_or_clear_hugepages<T>(self, v: Option<T>) -> Selfwhere
T: Into<HugepagesConfig>,
Sets or clears the value of hugepages.
Trait Implementations§
Source§impl Clone for LinuxNodeConfig
impl Clone for LinuxNodeConfig
Source§fn clone(&self) -> LinuxNodeConfig
fn clone(&self) -> LinuxNodeConfig
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source. Read more