mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 10:08:40 -05:00
(POOLER-89) Identify when config issue is present
This commit adds vmpooler inspection of configuration issues to host selection. Specifically, configIssue is checked, which should allow an issue like quickstats not being reported to be identified even when the alarm will not trigger. Without this change a host will continue to be used if quickstats are not reported when alarms are not triggered because of this condition, which results in a single host being the target for all deploys and migrations, overloading the host and causing its VMs to have degraded performance.
This commit is contained in:
parent
03e8933d2b
commit
2f5e43284d
3 changed files with 16 additions and 1 deletions
|
|
@ -545,6 +545,7 @@ module Vmpooler
|
|||
end
|
||||
return nil if host.runtime.inMaintenanceMode
|
||||
return nil unless host.overallStatus == 'green'
|
||||
return nil unless host.configIssue.empty?
|
||||
|
||||
cpu_utilization = cpu_utilization_for host
|
||||
memory_utilization = memory_utilization_for host
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue