Welcome! Log In Create A New Profile

Advanced

Ubuntu+Nginx packet loss / dropped upstream connections

October 29, 2013 02:35PM
Hello Nginx experts,

We make heavy use of Nginx as a reverse-proxy/load-balancer. It communicates with Apache and Tornado hosts upstream and proxies them publicly on port 80/443 - pretty standard.

The problem is, when pinging the LB host, every 30 pings or so, a ping is completely dropped and the latency immediately jumps from <20ms to >1000ms, then after a few pings, calms down again.

We are receiving a lot of messages like:

2013/10/28 08:49:05 [error] 20612#0: *77590567 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 50.xx.xx.169, server: loadbalancer, request: "GET / HTTP/1.1", upstream: "http://10.xx.xx.84:8014/", host: "loadbalancer"

and:

2013/10/28 08:49:05 [error] 20612#0: *77590567 no live upstreams while connecting to upstream, client: 50.xx.xx.169, server: loadbalancer, request: "GET / HTTP/1.1", upstream: "http://api-read-frontends/", host: "loadbalancer"


Is there configuration in Nginx that could be causing this? We have also cusomized sysctl.conf to try and fix it, no luck so far. There's more info, ping dumps, and our sysctl file attached to this question: http://serverfault.com/questions/549273/diagnosing-packet-loss-high-latency-in-ubuntu

Thanks in advance, any help is immensely appreciated :) Nginx is awesome!
Subject Author Posted

Ubuntu+Nginx packet loss / dropped upstream connections

sgammon October 29, 2013 02:35PM

Re: Ubuntu+Nginx packet loss / dropped upstream connections

slowredbike May 22, 2014 03:05PM

Re: Ubuntu+Nginx packet loss / dropped upstream connections

Maxim Dounin May 23, 2014 04:54AM

Re: Ubuntu+Nginx packet loss / dropped upstream connections

slowredbike May 23, 2014 12:05PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 121
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready