Your Essential Queries
Nginx Configuration For 10K Concurrent Request
- worker_processes 4;
- events {
- worker_connections 10000;
- use epoll;
- }
- http {
- sendfile on;
- tcp_nopush on;
- tcp_nodelay on;
- keepalive_timeout 65;
- types_hash_max_size 2048;
- server {
- listen 80;
- server_name example.com;
- location / {
- proxy_pass http://upstream_server;
- proxy_set_header Host $host;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_http_version 1.1;
- proxy_set_header Connection "";
- proxy_buffering off;
- }
- }
- }