Hi,
I would like to know if we can increase the performance of Thold. For now, I make a polling every 30 seconds about 7500 oid. The collection of information by spine works fine (about 4 seconds). But thold_check_threshold function takes a long time (about 18 seconds).
When I current alarms, the function takes about 1 seconds to 500 alarms. This behavior create a problem as soon as I have about 3000 alarms. => Thold + Spine> 30 seconds.
traces without active alarmes
- 2300 check :
01/24/2012 04:25:38 PM - SYSTEM STATS: Time:2.6962 Method:spine Processes:5 Threads:50 Hosts:324 HostsPerProcess:65 DataSources:7437 RRDsProcessed:7426
01/24/2012 04:25:43 PM - SYSTEM THOLD STATS: Time:4.4685 Tholds:2300 Hosts:0
- 4600 check :
01/24/2012 04:27:04 PM - SYSTEM STATS: Time:2.8753 Method:spine Processes:1 Threads:50 Hosts:324 HostsPerProcess:324 DataSources:7436 RRDsProcessed:7425
01/24/2012 04:27:16 PM - SYSTEM THOLD STATS: Time:11.2256 Tholds:4600 Hosts:0
- 6900 check :
01/24/2012 04:31:05 PM - SYSTEM STATS: Time:3.6953 Method:spine Processes:1 Threads:50 Hosts:324 HostsPerProcess:324 DataSources:7437 RRDsProcessed:7426
01/24/2012 04:31:23 PM - SYSTEM THOLD STATS: Time:18.1272 Tholds:6900 Hosts:0
- 7406 check :
01/24/2012 04:35:54 PM - SYSTEM STATS: Time:3.5433 Method:spine Processes:1 Threads:50 Hosts:324 HostsPerProcess:324 DataSources:7437 RRDsProcessed:7426
01/24/2012 04:36:13 PM - SYSTEM THOLD STATS: Time:19.0961 Tholds:7406 Hosts:0
I tried using the pcntl php function (fork) in the thold_check_threshold function to reduce the execution time. But I have problem connection to the database.
Is it possible to divide the execution time of the function with pcntl ?
How increase the performance of Thold ?
Regards,
thold_check_threshold performance
Moderators: Developers, Moderators
Who is online
Users browsing this forum: No registered users and 0 guests