📜 ⬆️ ⬇️

Nginx will receive full support for HTTP / 1.1 Keep-Alive connections with back-end

Last week, Maxim Dunin posted a message in the English-speaking Nginx developer mailing list asking him to test a patch that adds full (including chunked-answers) support for Keep-Alive connections (using the upstream keepalive module) with http, fastcgi and memcached back-end servers.

To avoid misunderstandings, let me remind you that Nginx has excellent support for the HTTP 1.1 protocol and Keep-Alive client connections. However, persistent connections with http backend are not supported. There were reasons for this.

Among the benefits that can be obtained from the expected innovations:
The proposed patch for Nginx versions 1.0.5 and 1.1.0 is experimental and runs basic tests. The author encourages everyone to take part in more intensive testing. As Igor Sysoev already said , in the future it is expected that the code will be added to one of the releases of the 1.1.x branch that is being actively developed at the moment.

All interested please follow the link for detailed instructions:
mailman.nginx.org/pipermail/nginx-ru/2011-August/042069.html
')
The latest version of the patch can be found here: nginx.org/patches/patch-nginx-keepalive-full-2.txt

ps Do not get carried away by the number of keepalives in the upstream directive, it is multiplied by the number of working processes. So, if you have the worker_processes directive set to 4, and keepalive to set 10, then you will get up to 4 * 10 == 40 keep-alive connections. Do not overestimate the possibilities of your back end.

Source: https://habr.com/ru/post/125530/


All Articles