Welcome! Log In Create A New Profile


enabling keepalive increases request time

September 30, 2013 10:51AM

I'm using Nginx 1.2.9 behind Amazon's ELB. We recently moved our servers behind the ELB and in testing enabling keepalives between the server and the ELB we are seeing request times double from around 25ms to 50ms. I tried disabling postpone_output since I thought it was a buffering issue, but still saw increased response times. Anyone have any ideas what could explain this? Enabling keepalive , improves other metrics for us such as TCP timeouts and CPU utilization, so we'd like to enable if we can.

The nginx servers are just proxying to backend servers , also utilizing keep alive on the upstream. Below are the main options we are using

worker_processes 2;
worker_rlimit_nofile 500000;

events {
worker_connections 20000;

http {

sendfile on;
tcp_nopush off;
tcp_nodelay off;
gzip off;
keepalive_requests 100000;
output_buffers 8 64k;
postpone_output 0;

server {
listen *:80 default deferred backlog=16384;

enabling keepalive increases request time

jlintzSeptember 30, 2013 10:51AM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 65
Record Number of Users: 6 on March 20, 2015
Record Number of Guests: 148 on March 24, 2015
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready