發現服務器有出現502的情況
目前uv在8000
集中在晚8點到11點
查詢php-fpm.log
WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 1 idle, and 29 total children
大量這種日誌尋找辦法
講pm的值改成靜態 static
pm.max_children 設爲150
不在有502出現
過了幾天 查看 php-fpm的status
發現
max active processes 已經到達 150
查看日誌有502出現
心想 150內存塊佔完了
咋辦,再調高內存要完了,而且8核的cpu沒怎麼用
解決辦法
調回pm 爲
dynamic
調高pm.min/max_spare_servers 待測試中