user www-data;
worker_processes 2;
pid /run/nginx.pid;
events {
use epoll;
worker_connections 25000;
multi_accept on;
}
http {
##
# Basic Settings
##
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
keepalive_requests 100;
types_hash_max_size 2048;
reset_timedout_connection on;
client_body_timeout 10;
# server_tokens off;
# server_names_hash_bucket_size 64;
# server_name_in_redirect off;
include /etc/nginx/mime.types;
default_type application/octet-stream;
##
# SSL Settings
##
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
ssl_prefer_server_ciphers on;
##
# Logging Settings
##
access_log off;
error_log /var/log/nginx/error.log;
##
# Gzip Settings
##
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;
##
# Virtual Host Configs
##
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}
listen = /run/php/php5.6-fpm.sock
pm = ondemand
pm.max_children = 5000
pm.start_servers = 2
pm.max_spare_servers = 10
pm.min_spare_servers = 2
pm.process_idle_timeout = 100s;
pm.max_requests = 5000
rlimit_files = 1024
rlimit_core = 5
server {
listen 80;
listen [::]:80;
root /home/nuxt;
access_log /home/nuxt/faucetAccess.log;
error_log /home/nuxt/faucetErrors.log;
location / {
gzip off;
proxy_pass http://localhost:3007;
}
}
{
"apps": [
{
"name": "app",
"script": "../app/node_modules/nuxt/bin/nuxt-start",
"instances": "10",
"exec_mode": "cluster",
"cwd": "./",
"env": {
"PORT": 3007,
"NODE_ENV": "production"
}
}
]
}
server {
listen 2052;
server_name api.localhost;
root /home/public_html/;
index index.php
access_log /home/nuxt/nginxAccess.log;
error_log /home/nuxt/nginxErrors.log;
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass unix:/run/php/php5.6-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
сейчас в какой то момент при серверном рендеринге некоторые запросы провисают и nginx рвет соединение в итоге часть запросов к сайту падает.
сейчас в какой то момент при серверном рендеринге некоторые запросы провисают