Keepalive connections in upstream
upstream microservieA {
server 10.0.0.10:57241;
keepalive 128;
}
location {
proxy_pass microservieA;
proxy_http_version 1.1;
proxy_set_header Connection "";
}
http://nginx.org/en/docs/http/ngx_http_upstream_module.html#keepalive
https://www.nginx.com/blog/tuning-nginx/
RUN ln -sf /dev/stdout /var/log/nginx/access.log
&& ln -sf /dev/stderr /var/log/nginx/error.log
To redirect nginx logs to stdout and stderr