I meant to say, "When I serve a static file from nginx I get about 25,000 requests/sec."by imosquera - Other discussion
I'm experiencing something similar with nginx proxying using proxy_pass. Your situation might have to do with kernal tuning params. You might want to use these params before your perform your next test. Thanks. echo “10152 65535″ > /proc/sys/net/ipv4/ip_local_port_range sysctl -w fs.file-max=128000 sysctl -w net.ipv4.tcp_keepalive_time=300 sysctl -w net.core.somaxconn=250000 sysctby imosquera - Other discussion
I'm currently using nginx to proxy back to gunicorn with 8 workers. I'm using an amazon extra large instance with 4 virtual cores. When I connect to gunicorn directly I get about 10K requests/sec. When I serve a static file from nginx I get about 25 requests/sec. But when I place gunicorn behind nginx on the same physical server I get about 5K requests/sec. I understand there will be someby imosquera - Other discussion