Re[2]: Низкая скорость обработки запросов

Oleg I. support at sharedzilla.com
Wed Feb 21 12:28:43 MSK 2007


> Может конфиг покажите?

Вариант первый:

worker_processes  3;

worker_rlimit_nofile 10000;
worker_rlimit_sigpending 32768;
worker_priority 5;

events {
    worker_connections  5000;
    use kqueue;
}

http {
    ...
    tcp_nopush       on;
    tcp_nodelay      on;
    sendfile        on;
    output_buffers   32 256k;
    postpone_output  1460;
    ...
}



Вариант второй:

worker_processes  1;

worker_rlimit_nofile 10000;
worker_rlimit_sigpending 32768;
worker_priority 5;

events {
    worker_connections  10000;
    use kqueue;
}

http {
    tcp_nopush       on;
    tcp_nodelay      on;
    sendfile        on;
    output_buffers   32 256k;
    postpone_output  1460;
    ...

    server {
        listen  ххх default backlog=1024 rcvbuf=131072 sndbuf=1048576;
        ...
        }
    }
}






More information about the nginx-ru mailing list