ilri / rmg-ansible-public

Ansible playbooks for ILRI research-computing infrastructure
GNU General Public License v3.0
8 stars 2 forks source link

WIP: roles/dspace: Use proxy_pass to upstream in nginx #81

Closed alanorth closed 7 years ago

alanorth commented 7 years ago

Using proxy_pass to an upstream server (instead of directly to the server's IP) allows us to let nginx use TCP keepalive when talking to the backend server as well as simplify the config a bit.

As it is now, nginx creates a new TCP connection to the backend for each client that connects to the front end—this enables it to keep some of the connections open so it can re-use them.

See: https://www.nginx.com/blog/http-keepalives-and-web-performance/ See: https://www.nginx.com/blog/tuning-nginx/ See: https://nginx.org/en/docs/http/ngx_http_upstream_module.html#keepalive

WIP: Don't merge. Running on DSpace Test. Still testing!