RE: Max connection number seen on production envs.

"Robinson Maureira Castillo" <[email protected]>
Newsgroups gmane.linux.highavailability.ultramonkey
Message-ID <[email protected]>
In fact is just an ugly perl script (quoted below), and rrdtool (http://oss.oetiker.ch/rrdtool/index.en.html)

Mechanics are pretty simple, every minute I record the output of ipvsadm -L -n -c in a file, let's say /var/log/ipvsadm

Then, a perl script is called from snmp, the perl simply parses the ipvsadm output, in our case, looking for the external (internet) VIP's, since those are the important ones, it counts connections in each VIP and output the results, like this:

-- snip -- 
XXX:
30619
YYY:
3107
ZZZ:
2833
TOTAL:
36559
-- snip --

Then a monitoring agent, take those values via snmp and add them to a rrd db, and then you can produce graphics from that data.

-- begin ipvsparse.pl --
#!/usr/bin/perl

@INPUT = qx~cat /var/log/ipvsadm~;
$xxx = $yyy = $zzz = 0;
foreach $line (@INPUT) {
        chomp $line;
        ($x,$x,$x,$src,$vip,$rip) = split /\s+/,$line;
        if (grep /1.2.3.4/,$vip) {
                $xxx++;
        }
        if (grep /5.6.7.8/,$vip) {
                $yyy++;
        }
        if (grep /9.8.7.6/,$vip) {
                $zzz++;
        }

}

print "XXX:\n$vtr\n";
print "YYY:\n$mi\n";
print "ZZZ:\n$mx\n";
print "TOTAL:\n".($xxx+$yyy+$zzz)."\n";

exit 0;

-- end ipvsparse.pl --

You can use something like cacti to monitor the activity of other params like ram usage, load av, cpu, etc.

I'll post a screenshot of graphics later.

And yes, I know that script is not a jewel in terms of programming, but it works.

Hope it helps...
__________________________
Robinson Maureira Castillo
Soluciones Integrales S.A.
Eleodoro Flores 2425, Ñuñoa, Santiago - Chile
Central: (56 2) 411 9000   Fax: (56 2) 411 9001
Directo: (56 2) 411 9047
Móvil:    9 599 4987
e-mail: [email protected]

-----Mensaje original-----
De: [email protected] [mailto:[email protected]] En nombre de D. Dante Lorenso
Enviado el: Miércoles, 21 de Junio de 2006 17:44
Para: [email protected]
Asunto: Re: Max connection number seen on production envs.

I am using UM3 modestly to run 2 LDs and 8 Real Servers using CentOS4.  
Currently pushing 100Mb and load on the LD is not even affected ~= 0.0.

I would love to see how you have used RDDTool for generating graphs.  Is it a one-line kind of thing you can share or 3 months work + proprietary scripting?  Only recently I've begun the task of trying to find/build monitoring tools to show uptime and loads on all machines on our network.  If you could point me at tools which already solve this problem, it sure would save me the trouble of reinventing the wheel.

I googled rrdtool just now and found this: 
http://oss.oetiker.ch/rrdtool/index.en.html.  Is this what you are referring to?  Got any pointers?
Dante


Robinson Maureira Castillo wrote:
> Hi all,
>
> First of all, thanks for this wonderful pack that is UM.
>
> I was wondering what is the max connection number seen on production using ultramonkey, browsing the list archives the other day I saw a post of about 50k connections.
>
> We've implemented UM3 (2 directors in HA config using LVS-NAT) in a customer, serving 300k email users using 5 VIP and various (smtp, imap, http, smtp, ftp, etc) protocols on each one. We decided to implement UM3 after watching some Foundry appliance get fried near 40k connections.
>
> ipvsadm -L -n -c is being graph'd using rrdtool, and we're getting 55k connection peaks, the beauty part of all this, is that the active director is idling a lot, and memory usage is pretty low.
>
> Anyone mind in sharing experiences with moderate to heavy loads?
>
> Best regards,
> __________________________
> Robinson Maureira Castillo
> Soluciones Integrales S.A.
> Eleodoro Flores 2425, Ñuñoa, Santiago - Chile
> Central: (56 2) 411 9000   Fax: (56 2) 411 9001
> Directo: (56 2) 411 9047
> Móvil:    9 599 4987
> e-mail: [email protected]
>
>
>   



-- 
Ultra Monkey - http://www.ultramonkey.org/
To UNSUBSCRIBE, email to [email protected], with a body:
unsubscribe ultramonkey-users [email protected]
where "[email protected]" is YOUR email address.



-- 
Ultra Monkey - http://www.ultramonkey.org/
To UNSUBSCRIBE, email to [email protected], with a body:
unsubscribe ultramonkey-users [email protected]
where "[email protected]" is YOUR email address.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.