Всем привет.
Сервер cloud: 4 cpu, 8 ram. Стоит nginx как прокси на другие сервера и rabbitmq в контейнерах докера, логи включены.
Трафик ~70k rpm. При > трафике появляются лаги на других серверах - растет php-fpm, запросы не доходят.
Подозрение что nginx нужно больше ресурсов?
user nginx;
worker_processes auto;
pid /var/run/nginx.pid;
load_module modules/ngx_http_vhost_traffic_status_module.so;
events {
use epoll;
worker_connections 2048;
multi_accept on;
}
http {
sendfile on;
tcp_nopush on;
tcp_nodelay on;
send_timeout 2;
keepalive_timeout 30;
client_body_timeout 10;
reset_timedout_connection on;
types_hash_max_size 2048;
# server_tokens off;
server_names_hash_bucket_size 128;
# server_name_in_redirect off;
open_file_cache max=200000 inactive=20s;
open_file_cache_valid 30s;
open_file_cache_min_uses 2;
open_file_cache_errors on;
include /etc/nginx/mime.types;
default_type application/octet-stream;
# https://docs.docker.com/v17.09/engine/userguide/networking/configure-dns/
# Note: The DNS server is always at 127.0.0.11
resolver 127.0.0.11 valid=5s;
ssl_prefer_server_ciphers on;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_session_cache shared:SSL:10m;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
gzip on;
gzip_disable "msie6";
# gzip_vary on;
# gzip_proxied any;
# gzip_comp_level 6;
# gzip_buffers 16 8k;
# gzip_http_version 1.1;
# gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
vhost_traffic_status_zone;
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}