You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Matthias Leopold <ma...@leopold.priv.at> on 2016/04/01 16:26:13 UTC
[users@httpd] mod_proxy_fcgi connection reuse with PHP-FPM and UDS
Hi,
can someone please explain to me what the benefits/caveats of
"connection reuse" in mod_proxy_fcgi with PHP-FPM are? I'm referring to
the official documentation
http://httpd.apache.org/docs/2.4/mod/mod_proxy_fcgi.html.
I'd like to use it with a unix domain socket, the "Proxy via Handler"
example uses the "enablereuse" directive, the "PHP-FPM with UDS" example
(ProxyPassMatch) says "# UDS does not currently support connection
reuse". What is true now and when should i use "enablereuse"?
thx
matthias
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] mod_proxy_fcgi connection reuse with PHP-FPM and UDS
Posted by Eric Covener <co...@gmail.com>.
On Thu, Apr 7, 2016 at 11:27 AM, Matthias Leopold
<ma...@leopold.priv.at> wrote:
> Thank you very much for answering :-)
>
> According to your own changelog entry "enablereuse=on" does have an effect
> on UDS backends. My own benchmarks didn't show any difference though.
>
> *) mod_proxy_fcgi: Enable UDS backends configured with
> SetHandler/RewriteRule
> to opt-in to connection reuse and other Proxy options via explicitly
> declared "proxy workers" (<Proxy unix:... enablereuse=on max=...)
> [Eric Covener]
I'm guessing I had a better handle on what changed when I wrote the
CHANGES entry and
was wrong in my reply. You might be able to observe whether or not
it's actually reused it with trace8 loglevel.
It makes sense that there is less cost/benefit for UDS vs. TCP.
--
Eric Covener
covener@gmail.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] mod_proxy_fcgi connection reuse with PHP-FPM and
UDS
Posted by Matthias Leopold <ma...@leopold.priv.at>.
Am 2016-04-07 um 16:25 schrieb Eric Covener:
> On Fri, Apr 1, 2016 at 10:26 AM, Matthias Leopold
> <ma...@leopold.priv.at> wrote:
>> I'd like to use it with a unix domain socket, the "Proxy via Handler"
>> example uses the "enablereuse" directive, the "PHP-FPM with UDS" example
>> (ProxyPassMatch) says "# UDS does not currently support connection reuse".
>> What is true now and when should i use "enablereuse"?
>
> For a long stretch of 2.4.x, reuse was forced off for mod_proxy_fcgi over TCP.
> Because it was that way for so long, it is opt-in.
>
> The benefit is some reduced latency in dispatching a request to a FCGI server.
>
> I am not sure why UDS connections aren't pooled/reusable. Probably
> just never implemented.
Thank you very much for answering :-)
According to your own changelog entry "enablereuse=on" does have an
effect on UDS backends. My own benchmarks didn't show any difference though.
*) mod_proxy_fcgi: Enable UDS backends configured with
SetHandler/RewriteRule
to opt-in to connection reuse and other Proxy options via explicitly
declared "proxy workers" (<Proxy unix:... enablereuse=on max=...)
[Eric Covener]
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] mod_proxy_fcgi connection reuse with PHP-FPM and UDS
Posted by Eric Covener <co...@gmail.com>.
On Fri, Apr 1, 2016 at 10:26 AM, Matthias Leopold
<ma...@leopold.priv.at> wrote:
> I'd like to use it with a unix domain socket, the "Proxy via Handler"
> example uses the "enablereuse" directive, the "PHP-FPM with UDS" example
> (ProxyPassMatch) says "# UDS does not currently support connection reuse".
> What is true now and when should i use "enablereuse"?
For a long stretch of 2.4.x, reuse was forced off for mod_proxy_fcgi over TCP.
Because it was that way for so long, it is opt-in.
The benefit is some reduced latency in dispatching a request to a FCGI server.
I am not sure why UDS connections aren't pooled/reusable. Probably
just never implemented.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org