Cacti 0.8.6 eating diskspace

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

User avatar
Wernicke
Cacti User
Posts: 61
Joined: Tue Jun 08, 2004 3:07 am
Location: Bodø, Norway
Contact:

Post by Wernicke »

Here's some more statistic:

change db 2,299 60.38 0.06
delete 1,716,433 45,081.30 45.64 %
insert 1,720,617 45,191.19 45.75 %
replace 1,834 48.17 0.05 %
select 94,730 2,488.04 2.52 %
update 61,803 1,623.23 1.64 %
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

The reason that Cacti is generating so much more SQL traffic in 0.8.6 is because we are using the database to hold polling results prior to updating the RRD files. Then these entries are removed from the table.

Therefore, for every Data Source, you have 1-meny Insert(s) and 1-many Delete(s). Quite a bit of SQL activity comparted to prior results.

So that you know, this was done to prepare for a multiple-poller architecture to be released in 0.8.7 that will enable the Database to be on ServerA, the Web Server to be on ServerB and pollers to be on ServersA-n.

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?
User avatar
Mr.Burns
Posts: 5
Joined: Thu Nov 04, 2004 1:23 pm
Location: Curitiba-PR Brazil

Post by Mr.Burns »

I had the same problem with mysql.log, but the logrotate was not doing his job correctly. Then I checked the logrotate config and now it is working fine.
________________________________
Mr.Burns
rosch
Posts: 14
Joined: Fri May 14, 2004 3:32 am
Location: Germany

Post by rosch »

Mr.Burns wrote:I had the same problem with mysql.log, but the logrotate was not doing his job correctly. Then I checked the logrotate config and now it is working fine.
I have the mysql.log also in lograte, but at present it did not rotate it has at present a size of 4KB. There is nearly no output there (for me), just start and stop messages from starting/stopping the database daemon.

Roland
User avatar
Mr.Burns
Posts: 5
Joined: Thu Nov 04, 2004 1:23 pm
Location: Curitiba-PR Brazil

Post by Mr.Burns »

Roland, take a look if is there any config in your logrotate.conf or logrotate.d that is not used any more (like squid, postgresql, or services that does not run in your cacti machine). Also you can force your logrotate and watch the verbose messages with this command:

logrotate -fv /etc/logrotate.conf

Cheers
________________________________
Mr.Burns
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests