Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux Virtual Server: Users

[lvs-users] strange behaviour of Active / Inactive Connections when changing from apache to nginx

 

 

Linux Virtual Server users RSS feed   Index | Next | Previous | View Threaded


jerome at loyet

Jul 3, 2009, 5:16 AM

Post #1 of 2 (679 views)
Permalink
[lvs-users] strange behaviour of Active / Inactive Connections when changing from apache to nginx

Hi there,

I'm using LVS to loadbalance a web site over 8 real servers.

Recently I switch the web server software from apache to nginx and I
notice a strange behaviour of Active and Innactive connection.

Here is a graph of the two valued monitored:
http://tof.canardpc.com/show/f44de0b2-3ce6-47a8-9614-1d4b8fb964d5.html

The switch from apache to nginx has been made on thursday night.

As you can see, with apache, I had more Inactive conn than Active
conn. With nginx the two values are quite similar.

I don't know why I have this behaviour.

I hope someone here can help me on this.

thx

++ jerome

_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
Send requests to lvs-users-request [at] LinuxVirtualServer
or go to http://lists.graemef.net/mailman/listinfo/lvs-users


graeme at graemef

Jul 3, 2009, 5:57 AM

Post #2 of 2 (633 views)
Permalink
Re: [lvs-users] strange behaviour of Active / Inactive Connections when changing from apache to nginx [In reply to]

On Fri, 2009-07-03 at 14:16 +0200, Jérôme Loyet wrote:
> The switch from apache to nginx has been made on thursday night.
>
> As you can see, with apache, I had more Inactive conn than Active
> conn. With nginx the two values are quite similar.

I would imagine this is something to do with Apache or nginx and their
respective "keepalive" settings. It appears that Apache is either not
using HTTP keepalives at all, or their timeout is significantly shorter
than those inside nginx.

Graeme


_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
Send requests to lvs-users-request [at] LinuxVirtualServer
or go to http://lists.graemef.net/mailman/listinfo/lvs-users

Linux Virtual Server users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.