mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-17 02:03:15 +09:00
feature #1678: Improve monitoring algorithm and set better oned.conf defaults
This commit is contained in:
1 parent
a8c0702400
commit
a2b24764ac
2 files changed
+3
-3
No files matched your search
+1
-1
@@ -202,7 +202,7 @@ IM_MAD = [
|
||||
IM_MAD = [
|
||||
name = "kvm",
|
||||
executable = "one_im_ssh",
|
||||
arguments = "-r 0 -t 15 kvm" ]
|
||||
arguments = "-r 3 -t 15 kvm" ]
|
||||
#-------------------------------------------------------------------------------
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
|
||||
@@ -36,8 +36,8 @@ class CollectdClient
|
||||
@port = port
|
||||
|
||||
# Monitorization slot
|
||||
hosts_per_cycle = TOTAL_HOSTS / CYCLE
|
||||
@my_slot = (@number % TOTAL_HOSTS) / hosts_per_cycle
|
||||
hosts_per_cycle = TOTAL_HOSTS.to_f / CYCLE.to_f
|
||||
@my_slot = ((@number % TOTAL_HOSTS) / hosts_per_cycle).to_i
|
||||
|
||||
# Probes
|
||||
run_probes_cmd = File.join(DIRNAME, '..', "run_probes")
|
||||
|
||||
Reference in new issue
Block a user