Skip to content

Commit

Permalink
Run perf_capture_timer for ems (vs zone)
Browse files Browse the repository at this point in the history
switch over from running metrics per zone to running per ems
  • Loading branch information
kbrock committed Oct 24, 2019
1 parent aed3dd8 commit 1d6a3f2
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions app/models/miq_schedule_worker/jobs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,16 @@ def storage_scan_timer
end

def metric_capture_perf_capture_timer
queue_work(
:class_name => "Metric::Capture",
:method_name => "perf_capture_timer",
:role => "ems_metrics_coordinator",
:priority => MiqQueue::HIGH_PRIORITY,
:state => ["ready", "dequeue"]
)
MiqServer.my_server.zone.ems_collectable.each do |ems|
queue_work(
:class_name => "Metric::Capture",
:method_name => "perf_capture_timer",
:args => [ems.id],
:role => "ems_metrics_coordinator",
:priority => MiqQueue::HIGH_PRIORITY,
:state => ["ready", "dequeue"]
)
end
end

def metric_purging_purge_realtime_timer
Expand Down

0 comments on commit 1d6a3f2

Please sign in to comment.