worker_processes 8;
worker_rlimit_nofile 10240;
worker_cpu_affinity 0001 0100 1000 0010 0001 0100 1000 0010
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
multi_accept on;
use epoll;
}
http {
upstream uwsgi_host{
server 127.0.0.1:9000;
server 127.0.0.1:9001;
}
include mime.types;
worker_rlimit_nofile 10240;
worker_cpu_affinity 0001 0100 1000 0010 0001 0100 1000 0010
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
events {
worker_connections 2048;multi_accept on;
use epoll;
}
http {
upstream uwsgi_host{
server 127.0.0.1:9000;
server 127.0.0.1:9001;
}
include mime.types;
default_type application/octet-stream;
sendfile on;
#tcp_nopush on;
client_header_buffer_size 1k;
open_file_cache max=65535 inactive=20s;
open_file_cache_valid 30s;
open_file_cache_min_uses 1;
keepalive_timeout 120;
#gzip on;
server {
listen 80;
server_name app1;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
include uwsgi_params;
uwsgi_pass uwsgi_host;
}
}
}