Skip to content

Instantly share code, notes, and snippets.

@linuxmalaysia
Created June 7, 2020 02:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save linuxmalaysia/d03f0b7a9d960b704b3b02fcda642c15 to your computer and use it in GitHub Desktop.
Save linuxmalaysia/d03f0b7a9d960b704b3b02fcda642c15 to your computer and use it in GitHub Desktop.
sysctl.conf for elasticsearch node
vm.max_map_count=262144
net.core.default_qdisc = fq
net.ipv4.tcp_congestion_control = bbr
net.ipv4.tcp_notsent_lowat = 16384
net.core.somaxconn = 4096
# Increase size of file handles and inode cache
fs.file-max = 20971520
# Do less swapping
vm.swappiness = 1
vm.dirty_ratio = 60
vm.dirty_background_ratio = 2