Class: Google::Apis::ContainerV1::LinuxNodeConfig
- Inherits:
-
Object
- Object
- Google::Apis::ContainerV1::LinuxNodeConfig
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/container_v1/classes.rb,
lib/google/apis/container_v1/representations.rb,
lib/google/apis/container_v1/representations.rb
Overview
Parameters that can be configured on Linux nodes.
Instance Attribute Summary collapse
-
#cgroup_mode ⇒ String
cgroup_mode specifies the cgroup mode to be used on the node.
-
#hugepages ⇒ Google::Apis::ContainerV1::HugepagesConfig
Hugepages amount in both 2m and 1g size Corresponds to the JSON property
hugepages. -
#sysctls ⇒ Hash<String,String>
The Linux kernel parameters to be applied to the nodes and all pods running on the nodes.
-
#transparent_hugepage_defrag ⇒ String
Optional.
-
#transparent_hugepage_enabled ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LinuxNodeConfig
constructor
A new instance of LinuxNodeConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LinuxNodeConfig
Returns a new instance of LinuxNodeConfig.
4235 4236 4237 |
# File 'lib/google/apis/container_v1/classes.rb', line 4235 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cgroup_mode ⇒ String
cgroup_mode specifies the cgroup mode to be used on the node.
Corresponds to the JSON property cgroupMode
4192 4193 4194 |
# File 'lib/google/apis/container_v1/classes.rb', line 4192 def cgroup_mode @cgroup_mode end |
#hugepages ⇒ Google::Apis::ContainerV1::HugepagesConfig
Hugepages amount in both 2m and 1g size
Corresponds to the JSON property hugepages
4197 4198 4199 |
# File 'lib/google/apis/container_v1/classes.rb', line 4197 def hugepages @hugepages end |
#sysctls ⇒ Hash<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.ipv4.
tcp_max_orphans 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 fs.aio-max-nr fs.file-max fs.inotify.
max_user_instances fs.inotify.max_user_watches fs.nr_open vm.
dirty_background_ratio vm.dirty_expire_centisecs vm.dirty_ratio vm.
dirty_writeback_centisecs vm.max_map_count vm.overcommit_memory vm.
overcommit_ratio vm.vfs_cache_pressure vm.swappiness vm.watermark_scale_factor
vm.min_free_kbytes
Corresponds to the JSON property sysctls
4216 4217 4218 |
# File 'lib/google/apis/container_v1/classes.rb', line 4216 def sysctls @sysctls end |
#transparent_hugepage_defrag ⇒ String
Optional. Defines the transparent hugepage defrag configuration on the node.
VM hugepage allocation can be managed by either limiting defragmentation for
delayed allocation or skipping it entirely for immediate allocation only. See
https://docs.kernel.org/admin-guide/mm/transhuge.html for more details.
Corresponds to the JSON property transparentHugepageDefrag
4224 4225 4226 |
# File 'lib/google/apis/container_v1/classes.rb', line 4224 def transparent_hugepage_defrag @transparent_hugepage_defrag end |
#transparent_hugepage_enabled ⇒ String
Optional. Transparent hugepage support for anonymous memory can be entirely
disabled (mostly for debugging purposes) or only enabled inside MADV_HUGEPAGE
regions (to avoid the risk of consuming more memory resources) or enabled
system wide. See https://docs.kernel.org/admin-guide/mm/transhuge.html for
more details.
Corresponds to the JSON property transparentHugepageEnabled
4233 4234 4235 |
# File 'lib/google/apis/container_v1/classes.rb', line 4233 def transparent_hugepage_enabled @transparent_hugepage_enabled end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4240 4241 4242 4243 4244 4245 4246 |
# File 'lib/google/apis/container_v1/classes.rb', line 4240 def update!(**args) @cgroup_mode = args[:cgroup_mode] if args.key?(:cgroup_mode) @hugepages = args[:hugepages] if args.key?(:hugepages) @sysctls = args[:sysctls] if args.key?(:sysctls) @transparent_hugepage_defrag = args[:transparent_hugepage_defrag] if args.key?(:transparent_hugepage_defrag) @transparent_hugepage_enabled = args[:transparent_hugepage_enabled] if args.key?(:transparent_hugepage_enabled) end |