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.
Decoupling boost from from the poller.php
Moderators: Developers, Moderators
-
- Posts: 18
- Joined: Tue Oct 02, 2007 3:19 pm
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.
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.
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
You would be correct...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.
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]
[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]
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.
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.
Who is online
Users browsing this forum: No registered users and 3 guests