Welcome! Log In Create A New Profile

Advanced

Re: upstream keepalive: call for testing

July 28, 2011 02:46AM
On Wed, Jul 27, 2011 at 06:38:24PM +0400, Maxim Dounin wrote:
> Hello!
>
> On Wed, Jul 27, 2011 at 03:43:44PM +0200, Thomas Love wrote:
>
> > On 26 July 2011 13:57, Maxim Dounin <mdounin@mdounin.ru> wrote:
> >
> > > Hello!
> > >
> > > Attached patch (against 1.0.5) introduces upstream keepalive
> > > support for memcached, fastcgi and http. Note the patch is
> > > experimental and may have problems (though it passes basic smoke
> > > tests here). Testing is appreciated.
> > >
> > >
> > Sounds great. Is it expected to work in this case:
> >
> > upstream fastcgi_backend {
> > server unix:/tmp/php-fpm.sock
> > keepalive 32;
> > }
>
> Yes (though I'm not sure if php is able to maintain connections
> alive, but quick look suggests it should).
>
> > And if so, is it expected to have a performance benefit?
>
> Likely yes, but not a big one. It will save several syscalls per
> request, but you'll unlikely to notice compared to typical php
> request processing costs.
>
> Keepalive connections are mostly beneficial if response costs are
> comparable with connection establishment costs (i.e. over
> high-latency links or with really fast backends).

I saw reports that on busy filesystem on FreeBSD unix socket connection
establishment may be slow since these sockets uses the same kernel code
path as usual filesystems.


--
Igor Sysoev

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

upstream keepalive: call for testing

Maxim Dounin 2975 July 26, 2011 07:58AM

Re: upstream keepalive: call for testing

Gena Makhomed 791 July 26, 2011 09:06AM

Re: upstream keepalive: call for testing

Maxim Dounin 806 July 26, 2011 09:10AM

Re: upstream keepalive: call for testing

Thomas Love 821 July 27, 2011 09:44AM

Re: upstream keepalive: call for testing

Maxim Dounin 833 July 27, 2011 10:40AM

Re: upstream keepalive: call for testing

Brian Pane 861 July 28, 2011 12:14AM

Re: upstream keepalive: call for testing

Igor Sysoev 1061 July 28, 2011 02:46AM

Re: upstream keepalive: call for testing

Thomas Love 792 July 29, 2011 09:46AM

Re: upstream keepalive: call for testing

Maxim Dounin 806 July 29, 2011 11:38AM

Re: upstream keepalive: call for testing

splitice 1649 July 29, 2011 11:56AM

Re: upstream keepalive: call for testing

Maxim Dounin 804 July 29, 2011 12:16PM

Re: upstream keepalive: call for testing

splitice 1064 July 29, 2011 12:46PM

Re: upstream keepalive: call for testing

Igor Sysoev 907 July 30, 2011 01:54PM

Re: upstream keepalive: call for testing

Thomas Love 825 August 02, 2011 11:10AM

Re: upstream keepalive: call for testing

Maxim Dounin 1112 August 02, 2011 11:28AM

Re: upstream keepalive: call for testing

Srebrenko Šehić 810 July 30, 2011 01:48PM

Re: upstream keepalive: call for testing

Maxim Dounin 849 July 30, 2011 05:04PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 315
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready