Decoupling boost from from the poller.php

Support questions about the Threshold plugin

Moderators: Developers, Moderators

Post Reply
mia1dolfan
Posts: 18
Joined: Tue Oct 02, 2007 3:19 pm

Decoupling boost from from the poller.php

Post by mia1dolfan »

Thold is taking over three minutes to complete on a large installation, 21281 thresholds. It's causing the poller to take over five minutes resulting in breaks in some of the graphs.

I would like to detach thold from poller.php and run it as a separate process after the poller finishes.

I see there is a check-thold.php in the thold directory that it appears to me that it was meant at one point to execute tholds separately. I uncommented the exit statement at the beginning the commented out a duplicate function, and it appears to function only on a hand-full amount of hosts. I keep looking to see if I can figure anything out.

Does anyone have any suggestions to hack this, other suggestions, comments? I already use boost, spine.
mia1dolfan
Posts: 18
Joined: Tue Oct 02, 2007 3:19 pm

Post by mia1dolfan »

The actual amount of tholds is 14303. While I was testing how many hosts I could handle of once, I deleted a couple thousand hosts while the THOLD plugin was disabled, this left about 7000 orphan tholds in the thold_data table. After cleaning things up, it brought down the poller time by about 50 seconds or so.

I'll refrain from my previous suggestion for the time being. I'm willing to bet if any developers read that they were rolling their eyes at my suggestion of making their baby not work the way they intended.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

mia1dolfan wrote:I'm willing to bet if any developers read that they were rolling their eyes at my suggestion of making their baby not work the way they intended.
You would be correct... :lol:

But, this is a problem. PM Cigamit and see if he has any ideas on how to run Thold checking separately.
[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]
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

What version of thold are you using. I made some major speed increases in 0.3.9.

I can uncouple, but the problem is now thold gets it data on the fly (it used to be separate and checked the rrd files directly, which was also slow), and I would still need a process in there to check the data.

On thing I have been thinking on is spawning a new process to send the emails, since a slow smtp server can also bog things down.
llow
Cacti User
Posts: 170
Joined: Fri Oct 05, 2007 5:34 pm

Post by llow »

Maybe spawn the e-mail process after polling completes (with the option of disabling that all together :P).
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests