Boost 3.0 Released

Announcements concerning Plugins for Cacti

Moderators: Developers, Moderators

User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Boost 3.0 Released

Post by TheWitness »

All,

Boost 3.0 is released. This enhancement will halve the time it takes to run the boost process. In addition, we add more logging and some nice statistics (waiting on someone to create a graph template for this).

As always, you can obtain from the Doc's site. Here is the ChangeLog.
— 3.0 —

* feature: Deep performance tuning and code cleanup
* feature: Add logging to boost updates for performance tuning
* feature: Add hooks to support 95th Percentile and Bandwidth Summation

— 2.6 (Unreleased) —

* bug: Initial RRDfile update taks two boost cycles and not one
* bug: Cacti RRDtool fetch command bypasses boost causing issues
* bug: Don't optimize boost table if it's in MEMORY storage engine
Last edited by TheWitness on Sat Apr 24, 2010 8:16 am, edited 1 time in total.
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?
brylant
Posts: 36
Joined: Mon Aug 17, 2009 9:05 am

Post by brylant »

Any chance for "upgrade guide"...?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Well, if already running Boost 2.x, the process is quite simple.

1) Download the tar.gz to /tmp
2) untar
3) verify permissions
4) cp -rp /tmp/boost /var/www/html/cacti/plugins
5) goto Console->Plugin Management
6) QED

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?
toe_cutter
Cacti User
Posts: 168
Joined: Fri Sep 12, 2008 2:41 am
Location: Sweden

Post by toe_cutter »

Awesome improvement!
From ~70s to ~55s :D

<removed because of brainfail>
uhtred
Cacti User
Posts: 121
Joined: Fri Oct 09, 2009 8:59 am
Location: Germany

Post by uhtred »

hi,
after installing boost plugin (3.0-1) i got the following failure in my cacti log:
02/26/2010 09:53:28 AM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'145', SQL:"SHOW CREATE TABLE plugin_camm_syslog"
02/26/2010 09:53:28 AM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'145', SQL:"SHOW CREATE TABLE plugin_camm_snmptt_stat"
02/26/2010 09:53:17 AM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'145', SQL:"SHOW CREATE TABLE plugin_camm_syslog"
02/26/2010 09:53:17 AM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'145', SQL:"SHOW CREATE TABLE plugin_camm_snmptt_stat"

02/26/2010 09:57:21 AM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'145', SQL:"SHOW CREATE TABLE plugin_camm_syslog"
02/26/2010 09:57:21 AM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'145', SQL:"SHOW CREATE TABLE plugin_camm_snmptt_stat"

02/26/2010 10:05:03 AM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'145', SQL:"SHOW CREATE TABLE plugin_camm_syslog"
02/26/2010 10:05:03 AM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'145', SQL:"SHOW CREATE TABLE plugin_camm_snmptt_stat"
after this 3 times its clean.
the camm plugin is installed, but not enabled. the tables above doesn't exists in my db.
Last edited by uhtred on Fri Feb 26, 2010 10:20 am, edited 1 time in total.
System: Ubuntu 10.04lts@64bit, 2*X5650, 12GB, Cacti 0.8.7g, Spine 0.8.7g, PA2.9, Weathermap 0.97a, CAMM 1.6.75, monitor 1.3.1, realtime 0.43, thold 0.4.9.3, manage 0.6.2, mactrack 2.9(.1) ---- 508 devices, 6741 items, 4263 ds, time 7.01s, intervall 60, proc. 12, threads 14, php server 8
massimo
Posts: 5
Joined: Tue Dec 18, 2007 10:10 am

Post by massimo »

Hi, I'm very interested in this plugin and porting it to another monitoring system (Zenoss). Maybe somebody can help me understand how its done in Cacti (i.e., architecture, dependencies, data-flow etc.). In the meantime I will investigate how this idea and concept fits into the Zenoss' system. Any help, directions... appreciated.

Thanks,
massimo
KyleT
Posts: 16
Joined: Mon Dec 07, 2009 3:52 am

Post by KyleT »

Hi

I'm having issues when adding new devices using boost.

When not using boost, cacti creates the RRDs as follows:

Code: Select all

-rw-r--r-- 1 cacti  cacti   91068280 Mar 17 11:23 cactirealtime_load_1min_56174.rrd
However, when boost is enabled, I create a graph, then I go view that graph (causing on demand update), the rrd is created as follows:

Code: Select all

-rw-r--r-- 1 apache apache  60712448 Mar 16 15:22 cactirealtime_time_56215.rrd
Cacti user is apart of the Apache group and visa versa.

As you can see, I have two issues:
1. When a graph and data source is deleted in the web interface, the rrd does not get deleted (if rrd created by poller).
2. When boost reaches its max time and dumps data into rrds, the rrds created by apache user are not updated due to permissions.

Could anyone advise the best way to fix this? Is there any way to get Cacti and Apache to create the files with a mask of 664?

Cheers
Kyle
Cacti 0.8.7g & Spine 0.8.7g on RHEL 5.2 (2.6.18-92.el5)
2x Intel Quad Core Xeon E5345 | 12GB RAM
Graphing 1245 Cisco hosts - 49737 Data Sources
autom8 0.35b7 | Camm 1.6.7 | settings 0.7 | realtime 0.43 | threshold 0.4.2 |
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

KyleT wrote:Hi

I'm having issues when adding new devices using boost.

When not using boost, cacti creates the RRDs as follows:

Code: Select all

-rw-r--r-- 1 cacti  cacti   91068280 Mar 17 11:23 cactirealtime_load_1min_56174.rrd
However, when boost is enabled, I create a graph, then I go view that graph (causing on demand update), the rrd is created as follows:

Code: Select all

-rw-r--r-- 1 apache apache  60712448 Mar 16 15:22 cactirealtime_time_56215.rrd
Cacti user is apart of the Apache group and visa versa.

As you can see, I have two issues:
1. When a graph and data source is deleted in the web interface, the rrd does not get deleted (if rrd created by poller).
2. When boost reaches its max time and dumps data into rrds, the rrds created by apache user are not updated due to permissions.

Could anyone advise the best way to fix this? Is there any way to get Cacti and Apache to create the files with a mask of 664?

Cheers
Kyle
It all about having the correct directory permissions on the rra directory. You need to make sure that your Cacti poller user is in the Apache group and make sure that the apache group owns the directory and that the group has write permissions to the folder. You also need to set the bit on the directory permissions to have all file inherit the permissions of the directory instead of using the UMASK for the user.

Pretty sure you have to use a chmod with a +s on it. Don't use the syntax often enough to quote it.

Maybe someone else with more experience can help out here.

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?
meralias
Posts: 46
Joined: Tue Nov 14, 2006 7:07 am

Post by meralias »

use 'chmod 2775' on the rra directory, making sure that the rra directory has the right ownership. (similar to running chmod g+s)
KyleT
Posts: 16
Joined: Mon Dec 07, 2009 3:52 am

Post by KyleT »

Thank you both!!!

I completely forgot about permission inheritance :-).
Cacti 0.8.7g & Spine 0.8.7g on RHEL 5.2 (2.6.18-92.el5)
2x Intel Quad Core Xeon E5345 | 12GB RAM
Graphing 1245 Cisco hosts - 49737 Data Sources
autom8 0.35b7 | Camm 1.6.7 | settings 0.7 | realtime 0.43 | threshold 0.4.2 |
aleu
Cacti User
Posts: 216
Joined: Mon Dec 11, 2006 10:17 am

Re: Boost 3.0 Released

Post by aleu »

TheWitness wrote:Boost 3.0 is released. This enhancement will halve the time it takes to run the boost process. In addition, we add more logging and some nice statistics (waiting on someone to create a graph template for this).
Hmm, when I select "Enable direct population of poller_output_boost table by spine" during rrd updates quite large fraction of my graphs shows gaps in the graphs (poller runtime exceeds 300 seconds). Otherwise, the poller runtime is on the order of 65 seconds. Any idea why and which boost parameters I can tweak to mitigate this?

Current setup:
spine
2 concurrent poller processes
Enabled balance process load
30 threads
2 PHP script servers
60 sec script server timeout
50 OIDs per SNMP GET Request

Boost:
runs every 4 hrs (or 500,000 DSs)
Maximum sources per pass set ot 1,000
Memory limit for Boost and Poller set to 1GBytes
Maximum RRD Update Script Runtime 1 hour
Disabled direct population of poller_output_boost table (to avoid gaps every 4 hrs)
I am not using Boost Server
Image caching is enabled.

Thanks
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Turn of Balance Processes plus 60 ss timeout is bad.

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?
BorisL
Cacti User
Posts: 131
Joined: Sat Mar 31, 2007 9:21 am
Contact:

Re: Boost 3.0 Released

Post by BorisL »

aleu wrote:2 concurrent poller processes
Enabled balance process load
30 threads
Do you have your MySQL ready for 60 simultaneous INSERTs? Check 'show processlist' while polling with direct population enabled.
What engine do you use for poller_output_boost table?
aleu
Cacti User
Posts: 216
Joined: Mon Dec 11, 2006 10:17 am

Post by aleu »

TheWitness wrote:Turn of Balance Processes plus 60 ss timeout is bad.
TheWitness
Are you saying that with boost Balance Processes should be disabled by default? If so, can you explain why?
Also, I have a couple of scrips which take around 45 sec to complete, and if I lower the SS timeout below 60 I do ocasionally get gaps in these graphs.
aleu
Cacti User
Posts: 216
Joined: Mon Dec 11, 2006 10:17 am

Re: Boost 3.0 Released

Post by aleu »

BorisL wrote:
aleu wrote:2 concurrent poller processes
Enabled balance process load
30 threads
Do you have your MySQL ready for 60 simultaneous INSERTs? Check 'show processlist' while polling with direct population enabled.
What engine do you use for poller_output_boost table?
MYISAM. When I tried to use "Memory" I got gaps across all the graphs at random times (despite setting max_heap_table_size=768M). I will execute the "show processlist" command in a couple of hours when I get home.
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests