Skip to content

Commit

Permalink
commenting out an invalid sysctl setting
Browse files Browse the repository at this point in the history
  • Loading branch information
shaneknapp committed May 8, 2024
1 parent e480022 commit 9617f46
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 1 deletion.
2 changes: 1 addition & 1 deletion vendor/google/gke/node-pool/config/core-pool-sysctl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ linuxConfig:
# https://fasterdata.es.net/host-tuning/linux/#toc-anchor-2
net.core.netdev_max_backlog: '30000'
net.core.somaxconn: '4096'
net.ipv4.tcp_max_syn_backlog: '8192'
# net.ipv4.tcp_max_syn_backlog: '8192'

# these values are in bytes
net.core.rmem_max: '67108864'
Expand Down
43 changes: 43 additions & 0 deletions vendor/google/gke/node-pool/config/core-pool-sysctl.yaml.bak
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
kubeletConfig:
cpuManagerPolicy: static
# kubeletExtraConfig:
# allowedUnsafeSysctls: 'net.core.*,net.ipv4.*'
linuxConfig:
sysctl:
# tune the ipv4 settings to not cause nginx to use all of the tcp memory
# addresses: https://jira-secure.berkeley.edu/browse/DH-3
#
# following this process:
# https://cloud.google.com/kubernetes-engine/docs/how-to/node-system-config
#
# man page:
# https://man7.org/linux/man-pages/man7/tcp.7.html
#
# figures below are measured in units of system page size (4096B),
# and gleaned from the following articles:
# https://cromwell-intl.com/open-source/performance-tuning/tcp.html
# https://www.ibm.com/docs/en/linux-on-systems?topic=tuning-tcpip-ipv4-settings
# https://www.ibm.com/docs/en/linux-on-systems?topic=tuning-network-stack-settings
#
# net.ipv4.tcp_mem seems to be automagically generated from the supplied tcp_rmem
# and tcp_wmem settings. i believe?
#
# here be dragons.
#
# original values (as of 2023-19-04):
# net.core.netdev_max_backlog=1000
# net.core.rmem_max=212992
# net.core.wmem_max=212992
# net.ipv4.tcp_rmem=4096 87380 6291456
# net.ipv4.tcp_wmem=4096 16384 4194304
#
# https://fasterdata.es.net/host-tuning/linux/#toc-anchor-2
net.core.netdev_max_backlog: '30000'
net.ipv4.tcp_max_syn_backlog: '8192'
net.core.rmem_default:
net.core.rmem_max: '67108864'
net.core.wmem_max: '67108864'
net.ipv4.tcp_rmem: '4096 87380 33554432'
net.ipv4.tcp_wmem: '4096 87380 33554432'
# http://simonhf.wordpress.com/2010/10/01/node-js-versus-sxe-hello-world-complexity-speed-and-memory-usage/
net.core.somaxconn: '65535'

0 comments on commit 9617f46

Please sign in to comment.