%20%E5%87%BA%E7%8F%BE%E5%95%8F%E9%A1%8C.png)
我正在使用 JMeter CLI 來載入測試我們的微服務(Nginx+PHP-FPM+Laravel)。
微服務均位於執行運行狀況檢查的 AWS 應用程式負載平衡器下。
對於該微服務,負載測試的平均運行速度為 50req/s。幾分鐘後,運行狀況檢查失敗,並顯示
50#50: *835 epoll_wait() reported that client prematurely closed connection,
so upstream connection is closed too while sending request to upstream,
client: **.**.**.**, server: _, request: "GET /health HTTP/1.1",
upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "**.**.**.**:32807"
而來自 JMeter 的請求仍然可以。
這是唯一給出錯誤的微服務。但它們都有相同的 nginx 設定。
我實在一無所知。