Skip to content

Commit

Permalink
Update pgsql_perf_tuning.md
Browse files Browse the repository at this point in the history
  • Loading branch information
digoal committed May 26, 2016
1 parent e7be46b commit 4afe0ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pgsql_perf_tuning.md
Original file line number Diff line number Diff line change
Expand Up @@ -1195,7 +1195,7 @@ net.ipv4.tcp_synack_retries=2
net.ipv4.tcp_syncookies=1 # 开启SYN Cookies。当出现SYN等待队列溢出时,启用cookie来处理,可防范少量的SYN攻击
net.ipv4.tcp_tw_recycle=1 # 开启TCP连接中TIME-WAIT套接字的快速回收
net.ipv4.tcp_tw_reuse=1 # 开启重用。允许将TIME-WAIT套接字重新用于新的TCP连接
net.ipv4.tcp_timestamps=0 # 减少time_wait
net.ipv4.tcp_timestamps=1 # 减少time_wait
net.ipv4.tcp_tw_timeout=3
net.ipv4.ip_local_port_range = 9000 65535 # 本地自动分配的TCP UDP端口号范围
net.core.rmem_max = 4194304 # The maximum receive socket buffer size in bytes
Expand Down

0 comments on commit 4afe0ea

Please sign in to comment.