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

Mailing List Archive: Linux Virtual Server: Users

[lvs-users] problem with ipvsadm display

 

 

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


Karsten.Schoeke at geobasis-bb

Jun 4, 2012, 4:23 AM

Post #1 of 5 (539 views)
Permalink
[lvs-users] problem with ipvsadm display

Hi,

I've a differend display of ipvsadm output.

Here ist the output of ipvsadm:

[13:15:16] root [at] l:~> ipvsadm -L
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
TCP fsvlb2.lgb.local:www wlc
-> server1:www Route 1 0 13
-> server2:www Route 1 0 20
-> server3:www Route 1 0 13

On corrend time:
[13:15:37] root [at] l:~> cat /proc/net/ip_vs
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
TCP 0A850357:0050 wlc
-> 0A85037C:0050 Route 1 11807 20
-> 0A85037A:0050 Route 1 11804 15
-> 0A850372:0050 Route 1 11807 27

>From where comes the difference?
I'm to be stumped...

thx
Karsten

PS: Debian squeeze native.



_______________________________________________
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


tom at calixo

Jun 4, 2012, 6:18 AM

Post #2 of 5 (520 views)
Permalink
Re: [lvs-users] problem with ipvsadm display [In reply to]

Hi,

> I've a differend display of ipvsadm output.
[..]
> TCP fsvlb2.lgb.local:www wlc
> -> server1:www Route 1 0 13
[..]
> TCP 0A850357:0050 wlc
> -> 0A85037C:0050 Route 1 11807 20

>> From where comes the difference?
> I'm to be stumped...

One is in decimal, the other one in hex. Or am I missing the point of
the question ?
0A85037C:0050 == 10.133.3.1:80 (aka www)

-Thomas

_______________________________________________
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


Karsten.Schoeke at geobasis-bb

Jun 4, 2012, 6:31 AM

Post #3 of 5 (517 views)
Permalink
Re: [lvs-users] problem with ipvsadm display [In reply to]

Hi,

the problem ist the difference value of ActiveConn and InactiveConn...

thx
Karsten

> -----Ursprüngliche Nachricht-----
> Von: lvs-users-bounces [at] linuxvirtualserver
> [mailto:lvs-users-bounces [at] linuxvirtualserver] Im Auftrag
> von Thomas
> Gesendet: Montag, 4. Juni 2012 15:19
> An: LinuxVirtualServer.org users mailing list.
> Betreff: Re: [lvs-users] problem with ipvsadm display
>
> Hi,
>
> > I've a differend display of ipvsadm output.
> [..]
> > TCP fsvlb2.lgb.local:www wlc
> > -> server1:www Route 1 0 13
> [..]
> > TCP 0A850357:0050 wlc
> > -> 0A85037C:0050 Route 1 11807 20
>
> >> From where comes the difference?
> > I'm to be stumped...
>
> One is in decimal, the other one in hex. Or am I missing the
> point of the question ?
> 0A85037C:0050 == 10.133.3.1:80 (aka www)
>
> -Thomas
>
> _______________________________________________
> 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
>

_______________________________________________
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


Karsten.Schoeke at geobasis-bb

Jun 4, 2012, 7:35 AM

Post #4 of 5 (518 views)
Permalink
Re: [lvs-users] problem with ipvsadm display [In reply to]

???
Is the value of Conn also in hez???
I'm stumped for the difference values for ActiveConn & InactConn on output on ipvsadm and 'cat /proc/net/ip_vs'.

for one: ActiveConn on ipvsadm(0), on 'cat /proc/net/ip_vs'(11807)

any ideas?

> -----Ursprüngliche Nachricht-----
> Von: lvs-users-bounces [at] linuxvirtualserver
> [mailto:lvs-users-bounces [at] linuxvirtualserver] Im Auftrag
> von Thomas
> Gesendet: Montag, 4. Juni 2012 15:19
> An: LinuxVirtualServer.org users mailing list.
> Betreff: Re: [lvs-users] problem with ipvsadm display
>
> Hi,
>
> > I've a differend display of ipvsadm output.
> [..]
> > TCP fsvlb2.lgb.local:www wlc
> > -> server1:www Route 1 0 13
> [..]
> > TCP 0A850357:0050 wlc
> > -> 0A85037C:0050 Route 1 11807 20
>
> >> From where comes the difference?
> > I'm to be stumped...
>
> One is in decimal, the other one in hex. Or am I missing the
> point of the question ?
> 0A85037C:0050 == 10.133.3.1:80 (aka www)
>
> -Thomas
>
> _______________________________________________
> 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
>

_______________________________________________
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


misch at schwartzkopff

Jun 4, 2012, 7:56 AM

Post #5 of 5 (511 views)
Permalink
Re: [lvs-users] problem with ipvsadm display [In reply to]

> ???
> Is the value of Conn also in hez???
> I'm stumped for the difference values for ActiveConn & InactConn on output
> on ipvsadm and 'cat /proc/net/ip_vs'.
>
> for one: ActiveConn on ipvsadm(0), on 'cat /proc/net/ip_vs'(11807)
>
> any ideas?

Hi,

as far as I can remember the active connection counter is broken in Debian
Squezze. I don't know if this is fixed already.

But there a difference in active and inactive connections. ipvs counts a
connection as active where it did *not* see the FIN bit set (after SYN and
ACK).

When it saw the first packet with a FIN bit it counts this connection as
inactive until the timeout. Then the connection is deleted from the state
table.

So you always have quite a lot of inactive connections hanging around. Please
tune the timeout if you do not like it.

Greetings,

--
Dr. Michael Schwartzkopff
Guardinistr. 63
81375 München

Tel: (0163) 172 50 98
Fax: (089) 620 304 13
Attachments: signature.asc (0.19 KB)

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.