-
Notifications
You must be signed in to change notification settings - Fork 897
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cu schedule collector by ems #19420
Cu schedule collector by ems #19420
Conversation
31908f1
to
3f58c9a
Compare
1d6a3f2
to
f0ea15e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just the one main thing
schedules_for_ems_metrics_coordinator_role checks for role enabled with ems_metrics_coordinator before creating repeating timer metric_capture_perf_capture_timer No need to also check for the the role in the timer
f0ea15e
to
d253be7
Compare
One issue from me on the terminology, but otherwise looks good. I'll leave it to @agrare to merge |
d253be7
to
42424ae
Compare
@@ -68,11 +68,11 @@ def storage_scan_timer | |||
end | |||
|
|||
def metric_capture_perf_capture_timer | |||
zone = MiqServer.my_server(true).zone | |||
if zone.role_active?("ems_metrics_coordinator") | |||
MiqServer.my_server.zone.ems_collectable.each do |ems| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you missed updating this one to ems_metrics_collectable
Up until now, perf_capture_timer is never passed a parameter So changing the parameter from zone to ems_id will not break anything.
42424ae
to
6af789d
Compare
Checked commits kbrock/manageiq@16aec34~...6af789d with ruby 2.4.6, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0 |
We suggest that customers should configure one ems per zone.
So running collection by zone is typically just running collection by ems.
before
scheduler sends no parameter for collector.
collector defaults to the current zone
collector gets all vms/hosts for the zone and sends off a message to collect each.
after
scheduler sends an ems for collector
collector gets all vms/hosts for the ems and sends off a message to collect each.
old messages for collectors still default to the current zone.
/thanks @d-m-u