Boost plugin: lockf'ed continious poller_boost.php

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
BorisL
Cacti User
Posts: 131
Joined: Sat Mar 31, 2007 9:21 am
Contact:

Boost plugin: lockf'ed continious poller_boost.php

Post by BorisL »

I want to implement new style of poller_boost.php.

It tries to run after each poll cycle without any time checks, but checks for locked file (so it will know whether another boost process is running already). Because of the lock, it does not need to honor runtime limit at all - lock will automatically and optimally (by disk usage) scheldule rrd updates.

Any thoughts?
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Boris,

What I am recommending until Boost 2.0 is to rename poller_boost.php to some other name, say poller_boost_force.php. The schedule the poller_boost_force.php -force in cron on the hour or two hour depending on how many RRD's you have.

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:

Post by BorisL »

TheWitness wrote:until Boost 2.0
I checked "2.0" version from SVN out. It can overrun easily when >10000 datasources are set in configuration. Now I'm playing with poller_boost.php rewriting it to continious scheme, it is pretty simple.
TheWitness wrote:The schedule the poller_boost_force.php -force in cron on the hour or two hour depending on how many RRD's you have.
This sooner or later will produce situation as in this bug splitting one datasource by timestamp.
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Continuous is a bad idea, I am pretty sure. There is a reason for that, when you understand you will likely stop what you are doing.

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:

Post by BorisL »

Hmm, last two weeks I was doing this thing: playing with boost parameters to make update of 200k+ datasource items be robust when updating 18Gb of rrds: start: 1hour, max runtime:40min. But it will start overrunning when I add 100k datasource items more simply because it will stays in idle for 20 minutes!
MySQL plays as an bottleneck when you have 3M records even in memory table. May be that poller_output_boost partitioning is a cure, but I am not sure.

So continious run is a only cure for me: it will evenly split load.
BorisL
Cacti User
Posts: 131
Joined: Sat Mar 31, 2007 9:21 am
Contact:

Post by BorisL »

I wrote it.
It works pretty well.
Attachments
rolling.patch
Rolling RRD update scheme patch
to be applied against SVN trunk version
(15.21 KiB) Downloaded 326 times
BorisL
Cacti User
Posts: 131
Joined: Sat Mar 31, 2007 9:21 am
Contact:

Post by BorisL »

Let me explain meaning of 'continious' boost running.
In fact my patch disgards maximum run time.
"How Often Should Boost Update All RRD's" and "Maximum Records" are honored as usual.
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Ah, ok, then that's different. You are simply "Daemonizing" the process. This is fine. I was considering getting rid of the "Maximum" runtime. It's a pain, and has caused some anyway. The reason for it was to attempt to detect a runon (segfault) condition. With windows and Unix, we simply need to track pids.

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:

Post by BorisL »

Ok, then I can prepare another patch for substituting curren poller_output.php with mine.
BorisL
Cacti User
Posts: 131
Joined: Sat Mar 31, 2007 9:21 am
Contact:

Post by BorisL »

Here it is.
Attachments
continious.patch
Disgarding maxruntime & enabling lockf mechanism
(12.24 KiB) Downloaded 429 times
BorisL
Cacti User
Posts: 131
Joined: Sat Mar 31, 2007 9:21 am
Contact:

Post by BorisL »

Another bunch of patches for SVN boost.

Per-graph rrd update is malfunctioning without this patch!
This patch totally eliminates overruns and endless cycling caused by stale data in poller_output_boost table: it checks (and skip stale data) rrd last update time before build update string for updating it.
Attachments
per-graph.patch
Patch against setup.php after applying continious.patch
(3.72 KiB) Downloaded 296 times
per-graph.trunk.patch
Patch for setup.php against boost trunk version.
poller_boost.php still needs patching
(7.82 KiB) Downloaded 303 times
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

All who read this please note that TRUNK is under heavy development now. It is NOT stable.

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
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Boost 2.0 is official. Please Check it Out Here:

http://forums.cacti.net/viewtopic.php?p=150337#150337

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