Re: Очень медленный ответ после нескольких быстрых ответов

EugeneNF nginx-forum на forum.nginx.org
Чт Сен 28 08:39:39 UTC 2017


Буду очень признателен, если глянете на мои конфигурационные файлы для nginx
и uwsgi
#########################################################
nginx.conf:

user  nginx;
worker_processes  10;

error_log  /var/log/nginx/error.log debug;
pid        /var/run/nginx.pid;


events {
    worker_connections  1024;
}


http {
    include       /etc/nginx/mime.types;
    default_type  application/octet-stream;

log_format  main   '$remote_addr| $time_local]| $request| $request_time|
$upstream_response_time| '
                  '$status|$body_bytes_sent|$http_referer|'
                  '$http_user_agent';

    access_log  /var/log/nginx/access.log  main;

    sendfile        on;

    keepalive_timeout  100000000;
tcp_nopush on;
tcp_nodelay on;

limit_rate 0;

    disable_symlinks off;

    include /etc/nginx/conf.d/*.conf;
}
###################################################################
nf.conf:

server {
    listen       80;
    server_name  nf.com;
    root   /NF;
 charset win-1251;

    location / {
        index  index.html index.htm;
    }

    location /fs {
        allow all;
        include uwsgi_params;
        uwsgi_pass unix:/run/uwsgi/FS.sock;
        uwsgi_ignore_client_abort on;
        uwsgi_connect_timeout 100000000;
        uwsgi_read_timeout 100000000;
        uwsgi_send_timeout 100000000;

    uwsgi_buffers 64 1M;
    proxy_buffers 64 1M;

tcp_nopush on;
tcp_nodelay on;
limit_rate 0;
#################################################
uwsgi.conf:
[uwsgi]
module = FS:application
master = true
processes = 12
enable-threads
async = 1000
ugreen

max-requests = 5000
post-buffering = false
post-buffering-bufsize = 8192000

listen = 100

uid = nginx
socket = /run/uwsgi/FS.sock
chown-socket = nginx:nginx
chmod-socket = 660
vacuum = true

die-on-term = true

logto = /NF/uwsgi.log

Posted at Nginx Forum: https://forum.nginx.org/read.php?21,276486,276595#msg-276595



Подробная информация о списке рассылки nginx-ru