Boost plugin: lockf'ed continious poller_boost.php
Moderators: Developers, Moderators
Boost plugin: lockf'ed continious poller_boost.php
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?
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?
- TheWitness
- Developer
- Posts: 17062
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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
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?
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?
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:until Boost 2.0
This sooner or later will produce situation as in this bug splitting one datasource by timestamp.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.
- TheWitness
- Developer
- Posts: 17062
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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
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?
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.
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.
I wrote it.
It works pretty well.
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
- TheWitness
- Developer
- Posts: 17062
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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
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?
Here it is.
- Attachments
-
- continious.patch
- Disgarding maxruntime & enabling lockf mechanism
- (12.24 KiB) Downloaded 429 times
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.
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
- TheWitness
- Developer
- Posts: 17062
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
All who read this please note that TRUNK is under heavy development now. It is NOT stable.
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?
- TheWitness
- Developer
- Posts: 17062
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Boost 2.0 is official. Please Check it Out Here:
http://forums.cacti.net/viewtopic.php?p=150337#150337
Regards,
TheWitness
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?
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 4 guests