Configure nginx upstreams
Use nginx upstreams and specify keepalive
of two: this as we have one single upstream server.
We recommend setting the parameter to twice the number of servers listed in the upstream{} block. This is large enough for NGINX to maintain keepalive connections with all the servers, but small enough that upstream servers can process new incoming connections as well.