X
X
Xisp2014-09-27 19:53:26
PHP
Xisp, 2014-09-27 19:53:26

Are persistent connections needed with php5-fpm?

Outside nginx, inside php5-fpm, socket connection.
The upstream directive can contain the keepalive option .
Does it make any sense to use it and is it supported?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vlad Zhivotnev, 2014-09-27
@Xisp

No, it doesn't make sense at all.
Moreover, it's a bit harmful - disabling keepalive allows php-fpm to kill unnecessary threads (and free up memory), instead of leaving them (because they keep it like keepalive). True, fpm must be able to keep keepalive by the master process (more precisely, "transfer" such connections to the master process over time). The only question is whether fpm has learned how to do it correctly =)
With the Apache behind keepalive, you definitely need to turn it off.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question