`nginx reload` 및 `nginx -t` 매우 느림 - 조사 방법

`nginx reload` 및 `nginx -t` 매우 느림 - 조사 방법

nginx 서버를 실행하는 AWS(EC2 t2.nano)에 아주 작은 VPS가 있습니다. 때로는 sudo service nginx reload또는 nginx -t매우 빠른 반면, 대부분의 경우 서버에 로드가 없으면 끔찍할 정도로 느립니다(>60초).

SSL이 활성화된 프록시 3개로 정의된 ~10개의 서버 블록이 있습니다.

nginx-t -v왜 그렇게 느린지에 대한 단서를 제공하지 않으므로 로그에서 아무 것도 찾을 수 없습니다. 그 동안 RAM과 CPU 사용량은 매우 낮습니다.

nginx를 다시 로드하는 속도가 느려지는 원인을 조사하려면 어떻게 해야 합니까? 제가 찾을 수 있는 일반적인 사항은 무엇입니까? DNS 결과? 내 업스트림은 모두 다음과 같이 정의됩니다.

upstream ent-pbmcom {
     ip_hash;            # for sticky sessions
     server 10.0.2.52:8080;
}

...

server {
     ...
     location / {
         add_header X-Block  "ent-pbmcom";
         add_header X-Upstream  $upstream_addr;
         add_header X-Requested-Host '$host';

         proxy_pass http://ent-pbmcom;

         proxy_set_header X-Real-IP $remote_addr;  # http://wiki.nginx.org/HttpProxyModule
         proxy_set_header Host $host;  # pass the host header - http://wiki.nginx.org/HttpProx$
         proxy_http_version 1.1;  # recommended with keepalive connections - http://nginx.org/$
         # WebSocket proxying - from http://nginx.org/en/docs/http/websocket.html
         proxy_set_header Upgrade $http_upgrade;
         proxy_set_header Connection $connection_upgrade;

         proxy_redirect off;
     }
}

관련 정보