Cacti Limitations

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
doublek
Posts: 31
Joined: Thu Apr 06, 2006 1:12 am
Contact:

Cacti Limitations

Post by doublek »

Here we go:

-For the last 3 weeks we have been confguring cacti to pull from over 350 devices with ~

SYSTEM STATS: Time:160.5750 Method:cactid Processes:1 Threads:30 Hosts:242 HostsPerProcess:242 DataSources:48020 RRDsProcessed:18234

This is only 1/6 of the request we will be pulling for now but we are starting to run into iteresting situations.

Once we hit 65k RRDs processed (with 1/2 pulls) we hit the timout limitations using cactid.

I've increased the Threads per Process anywhere from 15 - 256, Maximum pollers from 1 - 10 and even the php.ini to 512 for mem, with the same results running on FreeBSD.

In debug mode I notice the threads run first then the mysql updates and finaly the rrdtool updates. I beleive each of the rrdtool update are ran 1 at a time from the poller.php. If wrong let me know.

We are looking into rewriting part of the scripts and if anyone is interested in the results let me know.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Email TheWitness, he will help you out. He is the developer responsible for the poller.

But, I do have a question, how much memory is in this server? How many and the speed of the CPU's are there?
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
doublek
Posts: 31
Joined: Thu Apr 06, 2006 1:12 am
Contact:

Mem / CPU

Post by doublek »

Were currently running dual 2.8Ghz with 4 Gig of RAM.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Somehow this situation sounds familiar. Have we talked?

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
doublek
Posts: 31
Joined: Thu Apr 06, 2006 1:12 am
Contact:

Post by doublek »

Not yet but I was hoping I could bounce a few ideas off of you and see what some of our limitations might be.

Were currently looking into splitting the rrdtool updates out of the poller.php script and just dumping the updates over to another MySQL table and running multiple rrdtools in the background to keep up with the requests.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

I sent you an email, please respond.. :)
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
doublek
Posts: 31
Joined: Thu Apr 06, 2006 1:12 am
Contact:

Post by doublek »

Sorry about that. To many late nights and not enough time to check all my e-mail. I just sent off the reply.
cactiuser0
Posts: 6
Joined: Fri Apr 07, 2006 11:19 am

Post by cactiuser0 »

Need to learn the experience from mrtg.
jrobey
Posts: 3
Joined: Thu Feb 09, 2006 7:07 pm

Still going

Post by jrobey »

Update: Alright, at this point, we have had to pull our data locally since our NAS is having issues. Things are extremely slow to local disk, so I hope to get our data back on the NAS shortly.

In trying to build the latest cactid from repository (to get around the timeout issue) I get a compile error at or around line 161 before { results included below. Commenting out the conditional branch starting at line 600 takes care of the issue so I can test, but may not be the best thing to do ;) Anything look wrong w/ my command or is there a typo here that I'm not seeing?


make results:
if gcc -DHAVE_CONFIG_H -I. -I. -I./config -I/usr/local/include/net-snmp -I/usr/local/include/net-snmp/.. -I/usr/local/include/mysql -g -O2 -MT util.o -MD -MP -MF ".deps/util.Tpo" -c -o util.o util.c; then mv -f ".deps/util.Tpo" ".deps/util.Po"; else rm -f ".deps/util.Tpo"; exit 1; fi
util.c: In function `cacti_log':
util.c:601: error: syntax error before '{' token
util.c: At top level:
util.c:609: error: syntax error before "return"
*** Error code 1

Stop in /usr/home/jrobey/cactid.
(3 of 8): error: syntax error before '{' token
jrobey
Posts: 3
Joined: Thu Feb 09, 2006 7:07 pm

Found it

Post by jrobey »

Guess I've been looking to hard. Looks like the closing paren in second condition was missing. Still on the hunt for speed. Testing this then splitting off the rrdtool update from poller.php.
jrobey
Posts: 3
Joined: Thu Feb 09, 2006 7:07 pm

Forgot to post the branch I was working in

Post by jrobey »

/branches/BRANCH_0_8_6/cactid/util.c

looks like that error was put in during the last commit.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Can you please publish a bug report at http://bugs.cacti.net

Thanks,

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests