-
Notifications
You must be signed in to change notification settings - Fork 119
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
Load average on AWS does not divide by number of cores #97
Comments
@rafaeldff - The branch I've just pushed should address this issue I think. Is it possible for you to test - here's a gem build with the patch applied: https://www.dropbox.com/sh/bm8g5e8s94eu66n/AACTNDFX8Vb7SwUNyU4jqmKIa?dl=0 |
The nproc command should be available on most Linux distros and can replace the `cores` method in riemann-health. This should address issues where a host has multiple cores with the same ID.
I've faced this issue too. Any chance the fix gets to regular release? It's difficult to set thresholds for CPU load if the load is not reported on per-core basis. |
@adamdyga Does the fix address the issue? I'm still waiting for feedback. |
@jamtur01 to me it works like a charm ;) |
All "processors" on the output of
cat /proc/cpuinfo
have the same "core id". It seems each of them is a part of a hyperthreaded core.Currently, riemann-health behaves as if the machine has a single processor, always dividing the load average by 1. I don't know if it's possible to get the actual number of cores assigned to the VM, but there is probably a better estimate than 1.
E.g, here is the output of a 4 vCPU instance, reporting all "processors" as having
core id
=2
:The text was updated successfully, but these errors were encountered: