LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: Monitor Traffic By VIP

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: Monitor Traffic By VIP
From: Kjetil Torgrim Homme <kjetilho@xxxxxxxxxx>
Date: Sun, 11 Jul 2004 14:46:42 +0200
On ons, 2004-06-30 at 16:05 -0500, AJ Lemke wrote:
> I am running a 2 node lvs-cluster and was wonder if the list could recommend
> a traffic monitoring program.
> My LVS is the frontend for a reverse-proxy cache and I would like to know
> the traffic that each VIP is handling.
> I need to know the data rates on a per ip basis.  I use mrtg at the switch
> level but I need to have more granularity, hence the need for per IP basis. 

Munin has a plugin for this.  http://www.linpro.no/projects/munin/

you can get the numbers you need with ipvsadm

# ipvsadm -L -t smtp:smtp --stats
Prot LocalAddress:Port               Conns   InPkts  OutPkts  InBytes OutBytes
  -> RemoteAddress:Port
TCP  smtp.uio.no:smtp              1508879 38457326        0   10461M        0
  -> mail-mx6.uio.no:smtp           374117  9490846        0    2664M        0
  -> mail-mx3.uio.no:smtp           377646  9961956        0    2543M        0
  -> mail-mx2.uio.no:smtp           378502  9288837        0    2707M        0
  -> mail-mx1.uio.no:smtp           378614  9715687        0    2546M        0
# ipvsadm -L -t smtp:smtp --rate
Prot LocalAddress:Port                 CPS    InPPS   OutPPS    InBPS   OutBPS
  -> RemoteAddress:Port
TCP  smtp.uio.no:smtp                    7       85        0    20480        0
  -> mail-mx6.uio.no:smtp                1       17        0     1126        0
  -> mail-mx3.uio.no:smtp                1       17        0     2023        0
  -> mail-mx2.uio.no:smtp                2       26        0     6681        0
  -> mail-mx1.uio.no:smtp                2       25        0    10650        0

-- 
Kjetil T.

<Prev in Thread] Current Thread [Next in Thread>