Parameters that can be configured on Linux nodes.
JSON representation |
---|
{ "sysctls" : { string : string , ... } , "cgroupMode" : enum ( |
Fields | |
---|---|
sysctls
|
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 An object containing a list of |
cgroupMode
|
cgroupMode specifies the cgroup mode to be used on the node. |
transparentHugepageEnabled
|
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. |
transparentHugepageDefrag
|
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. |
hugepages
|
Optional. Amounts for 2M and 1G hugepages |
CgroupMode
Possible cgroup modes that can be used.
Enums | |
---|---|
CGROUP_MODE_UNSPECIFIED
|
CGROUP_MODE_UNSPECIFIED is when unspecified cgroup configuration is used. The default for the GKE node OS image will be used. |
CGROUP_MODE_V1
|
CGROUP_MODE_V1 specifies to use cgroupv1 for the cgroup configuration on the node image. |
CGROUP_MODE_V2
|
CGROUP_MODE_V2 specifies to use cgroupv2 for the cgroup configuration on the node image. |
HugepagesConfig
Hugepages amount in both 2m and 1g size
JSON representation |
---|
{ "hugepageSize2m" : integer , "hugepageSize1g" : integer } |
Fields | |
---|---|
hugepageSize2m
|
Optional. Amount of 2M hugepages |
hugepageSize1g
|
Optional. Amount of 1G hugepages |
TransparentHugepageEnabled
Possible values for transparent hugepage enabled support.
Enums | |
---|---|
TRANSPARENT_HUGEPAGE_ENABLED_UNSPECIFIED
|
Default value. GKE will not modify the kernel configuration. |
TRANSPARENT_HUGEPAGE_ENABLED_ALWAYS
|
Transparent hugepage support for anonymous memory is enabled system wide. |
TRANSPARENT_HUGEPAGE_ENABLED_MADVISE
|
Transparent hugepage support for anonymous memory is enabled inside MADV_HUGEPAGE regions. This is the default kernel configuration. |
TRANSPARENT_HUGEPAGE_ENABLED_NEVER
|
Transparent hugepage support for anonymous memory is disabled. |
TransparentHugepageDefrag
Possible values for transparent hugepage defrag support.
Enums | |
---|---|
TRANSPARENT_HUGEPAGE_DEFRAG_UNSPECIFIED
|
Default value. GKE will not modify the kernel configuration. |
TRANSPARENT_HUGEPAGE_DEFRAG_ALWAYS
|
It means that an application requesting THP will stall on allocation failure and directly reclaim pages and compact memory in an effort to allocate a THP immediately. |
TRANSPARENT_HUGEPAGE_DEFRAG_DEFER
|
It means that an application will wake kswapd in the background to reclaim pages and wake kcompactd to compact memory so that THP is available in the near future. It’s the responsibility of khugepaged to then install the THP pages later. |
TRANSPARENT_HUGEPAGE_DEFRAG_DEFER_WITH_MADVISE
|
It means that an application will enter direct reclaim and compaction like always, but only for regions that have used madvise(MADV_HUGEPAGE); all other regions will wake kswapd in the background to reclaim pages and wake kcompactd to compact memory so that THP is available in the near future. |
TRANSPARENT_HUGEPAGE_DEFRAG_MADVISE
|
It means that an application will enter direct reclaim like always but only for regions that are have used madvise(MADV_HUGEPAGE). This is the default kernel configuration. |
TRANSPARENT_HUGEPAGE_DEFRAG_NEVER
|
It means that an application will never enter direct reclaim or compaction. |