Cacti Limitations
Moderators: Developers, Moderators
Cacti Limitations
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.
-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.
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
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?
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]
[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]
Mem / CPU
Were currently running dual 2.8Ghz with 4 Gig of RAM.
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Somehow this situation sounds familiar. Have we talked?
TheWitness
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?
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?
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.
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.
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
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]
[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]
Still going
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 : error: syntax error before '{' token
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 : error: syntax error before '{' token
Forgot to post the branch I was working in
/branches/BRANCH_0_8_6/cactid/util.c
looks like that error was put in during the last commit.
looks like that error was put in during the last commit.
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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?
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?
Who is online
Users browsing this forum: No registered users and 0 guests