FastHandle - IT Operations Examples

FastHandle is fast operation tools for infrastructure configurations and tests.

User Tools

Site Tools


Sidebar


Top     SiteMap

Manager Server

Target Server

$FHHOME/bin/xxx.sh | xxxx.exp













.

os:linux:set:kernel:etc_sysctl.conf.html



This is an old revision of the document!


os

Configuration of /etc/sysctl.conf

/etc/sysctl.conf

#==============================================================================
# /etc/sysctl
# -rw-r--r-- root root
#
# Kernel Parameter Configuration
#
# Operation
#     check   : sysctl -a |grep XXXXXX
#     reflect : syctl -p
#
#==============================================================================


#------------------------------------------------------------------------------
# Memory (vm) 
#------------------------------------------------------------------------------
vm.swappiness = 0  # default 30
vm.max_map_count = 300000  # default 65530



#------------------------------------------------------------------------------
# Network
#------------------------------------------------------------------------------
# keepalive
net.ipv4.tcp_keepalive_time = 60  # defautl 7200
net.ipv4.tcp_keepalive_intvl = 3  # default 75
net.ipv4.tcp_keepalive_probes = 3 # default 9

# 60sec + 3sec * 9 = 567sec = 9.56min


# disable IPv6 (CentOS7)
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1

# port exhaustion
net.ipv4.tcp_max_syn_backlog = 65535
net.ipv4.ip_local_port_range = 1024 65535

net.core.somaxconn = 65535
net.core.netdev_max_backlog = 16384

net.ipv4.tcp_tw_reuse = 1


#------------------------------------------------------------------------------
# Kernel
#------------------------------------------------------------------------------
kernel.threads-max = 100000  # default 5782
kernel.pid_max = 131072   # default 32768





os



os/linux/set/kernel/etc_sysctl.conf.html.1510989371.txt.gz ยท Last modified: 2017/11/18 16:16 by kurihara