LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

RE: [LVSGSP] Release 0.0.4 - RRDtool update

To: "'lvs-users@xxxxxxxxxxxxxxxxxxxxxx'" <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: RE: [LVSGSP] Release 0.0.4 - RRDtool update
From: "Alexandre CASSEN" <alexandre.cassen@xxxxxxxxxxxxxx>
Date: Tue, 9 Oct 2001 09:03:37 +0100
Hi peter,

>> 2001-10-05  Alexandre Cassen  <acassen@xxxxxxxxxxxx>
>>          * lvsgsp-0.0.4 released.
>>          * Added specific realserver value fetch
>
>does this support more than 3 realservers?  I have 20+...

Sure, In fact you only have to modify the script to add your servers....
For the moment it is hardcoded :) a little ugly I know :) But still very
easy to add new servers.

>>          * Added support to RRDTOOL graph processor
>
>we can still use the built in 'old' mrtg method, right?  I haven't spent
>time on rrdtool yet :(

Both MRTG & RRDTOOL are supported. Anyway all that you have to do if you
want to move to rrdtool is download/install rrdtool, and read quickly the
INSTALL file present into the using-RRDTOOL/ directory. Still very
simple...

The 3 steps are :

1. Creating a RRDtool database for storing your servers value : for exemple
: (script : lvsgsp.dbcreate.RS)

rrdtool create $DB         \
        DS:www1:GAUGE:600:U:U   \
        DS:www2:GAUGE:600:U:U  \
        DS:www3:GAUGE:600:U:U  \
        RRA:AVERAGE:0.5:1:600      \
        RRA:AVERAGE:0.5:6:700      \
        RRA:AVERAGE:0.5:24:775     \
        RRA:AVERAGE:0.5:288:797    \
        RRA:MAX:0.5:1:600          \
        RRA:MAX:0.5:6:700          \
        RRA:MAX:0.5:24:775         \
        RRA:MAX:0.5:288:797

=> Will create a database to store values on www1, www2 & www3. If you have
more than 3 servers, simply append line

2. Update the database created : (lvsgsp.daily.rs)

rrdtool update $DB N:$WWW1:$WWW2:$WWW3

=> append new value to rrdtool database.

3. Create graph

$RRDTOOL graph $OUTPUT --start -86400 \
        -w 550 -h 150 \
        -v "Connection Number" \
        -t "LVS realserver actives connections tracking : Daily report" \
        --alt-autoscale-max \
        COMMENT:"Current actives connections - $TIME\n" \
        DEF:web1=$DB:www1:AVERAGE \
        DEF:web2=$DB:www2:AVERAGE \
        DEF:web3=$DB:www3:AVERAGE \
        LINE1:web1#FF0000:"Webserver 192.168.6.2" \
        LINE1:web2#0000FF:"Webserver 192.168.6.3" \
        LINE1:web3#555555:"Webserver 192.168.6.4"


>>          * Added -v, -r, -f, -h command line args
>
>what do these do?  is there a CVS somewhere?  I guess I can download
tarball
>code :P

Usage: lvsgsp [[-v vsipaddr vsport]|[-f fwmark]] [-r rsipaddr rsport]
  -v vsipaddr vsport : ip address & port of the virtual server
  -f fwmark          : the fwmark number
  -r rsipaddr rsport : ip address & port of the real server
                       Belong to -v or -f VS
Samples:
  TCP|UDP VS: lvsgsp -v 192.168.200.10 80
  TCP|UDP VS with RS: lvsgsp -v 192.168.200.10 80 -r 192.168.100.1 80
  FWMARK VS: lvsgsp -f 1

=> -r to grab value of a specific realserver.

>thanks Alexandre!  I am currently using 0.2 (?) release that you
originally
>posted on the web...

New release still compatible with all your configuration.

>PS - MRTG question - do you use something on the 'year' graph to make
things
>look nicer?  check out these examples... looks great till year, then it
>looks like strange..

... I recommand using rrdtool since you can configure it much more finely
than MRTG. If you need help on it let me know, will help you :)


Best regards,
Alexandre



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