Closed J-ogawa closed 6 years ago
nginx側
worker_connections
を増やすことが可能
ファイルディスクリプタの上限数 > worker_connections * worker_process ?
worker_rlimit_nofile
はworker_connectionsの4倍くらいがいいと言う人もいればデカい数を入れている人もいる
ちょっと違う話だけどISUCON4リトライしたら「(ローカルの)ポートの空きがない」罠に引っかかって、これは /etc/sysctl.conf
に
net.ipv4.ip_local_port_range = 10000 65000
net.ipv4.tcp_tw_recycle = 1
net.ipv4.tcp_fin_timeout = 10
を追記で回避できた
目的:nginxのworker_connectionsを増やしたい
os側