nginx的极端测试

将各项参数减少,发现

worker_rlimit_nofile最少是10
worker_connections最少是2
才能正常启动

如果想正常工作,
worker_rlimit_nofile最少12
worker_connections最少 3

TCP连接数不能超过worker_connections-2
猜测那两个是用于master进程和worker进程之间的通信吧

php-cgi进程少的情况下,对PHP的请求会依次被送去执行,后来的就等待
等待超时的就HTTP 504 Gateway Timeout
php-cgi进程没有在运行的情况下,对PHP的请求会得到502 Bad Gateway的回答

This entry was posted in 默认分类 and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.