Files
openGauss-OM/script/gspylib/etc/conf/check_list.conf
2021-07-10 16:29:20 +08:00

57 lines
1.8 KiB
Plaintext

#The file(check_list.conf) is the gs_check and gs_checkos configuration file.
#The file is placed in $GPHOME/script/util
# the system control parameter
[/etc/sysctl.conf]
net.ipv4.tcp_max_tw_buckets = 10000
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_tw_recycle = 1
net.ipv4.tcp_keepalive_time = 30
net.ipv4.tcp_keepalive_intvl = 30
net.ipv4.tcp_keepalive_probes = 9
net.ipv4.tcp_retries2 = 12
net.core.wmem_max = 21299200
net.core.rmem_max = 21299200
net.core.wmem_default = 21299200
net.core.rmem_default = 21299200
kernel.sem = 250 6400000 1000 25600
net.ipv4.tcp_rmem = 8192 250000 16777216
net.ipv4.tcp_wmem = 8192 250000 16777216
# vm.min_free_kbytes would set to 5% of total system memory real time, total system memory get with cmd: free -k|grep Mem|awk '{print $2}'.
vm.min_free_kbytes = total_system_memory*5%
net.core.netdev_max_backlog = 65535
net.ipv4.tcp_max_syn_backlog = 65535
net.core.somaxconn = 65535
net.ipv4.tcp_syncookies = 1
vm.overcommit_memory = 0
kernel.shmall = 1152921504606846720
kernel.shmmax = 18446744073709551615
# if parameter value is not equal to ths OS's value, print the waring, and not error
[SUGGEST:/etc/sysctl.conf]
net.ipv4.ip_local_port_range = 26000 65535
net.ipv4.tcp_fin_timeout = 60
net.ipv4.tcp_sack = 1
net.ipv4.tcp_timestamps = 1
net.ipv4.tcp_retries1 = 5
net.ipv4.tcp_syn_retries = 5
net.ipv4.tcp_synack_retries = 5
vm.extfrag_threshold = 500
vm.overcommit_ratio = 90
# open file number, please set it to set '1000000'
[/etc/security/limits.conf]
open files = 1000000
stack size = 3072
virtual memory = unlimited
max user processes = unlimited
# network parameter
# if the level of network is greater or equal to 10000Mb/s, please set RX/TX to 4096;
# we will check if the MTU is greater or equal to 1500, but gs_checkos dose not set it.
# else, skip it.
[/sbin/ifconfig]
MTU = 8192
RX = 4096
TX = 4096