Solution to many request for one host.

Anything that you think should be in Cacti.

Moderators: Developers, Moderators

Post Reply
kanada
Cacti User
Posts: 137
Joined: Sun Aug 28, 2005 12:51 pm

Solution to many request for one host.

Post by kanada »

Hello,

for many monitored hosts, 1000/5000/10000 cacti generate many sql inserts/inputs into the base.
This look like that:
request - get info - put to base.
I think that beter will be, if cacti will request all hosts, and insert one time into base, like this:
request - get info
request - get info
request - get info
.......... - .......
and then put all into base. I think that minimalize all time reservered to request.

Greetz,

Alexander
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Mysql buffer size will not allow that and the concurrent updating of rrdtool files would not be able to occur.
[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]
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Alter your poller_output table as follows:

shell$> mysql -u root -p cacti
> ALTER TABLE `poller_output` MODIFY COLUMN `output` VARCHAR(255) NOT NULL DEFAULT '', ENGINE = MEMORY;
> quit

This will reduce load significantly while polling. If you are running MySQL 5.0.3 or above, make the column VARCHAR(512).

Regards,

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 4 guests