-
Notifications
You must be signed in to change notification settings - Fork 84
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
No scaling execution with multiple checks #565
Comments
Thanks for the extra log @gjpin, they helped me understand the problem better. First, a bit of context. The Autoscaler operates on the assumption that checks are independent, and a final decision is made based on looking at their impact in isolation. Each check can return four results: scale
There was a bug in the The problem with this change is that it assumed, as I mentioned earlier, that all So I think we need to make this configurable in the |
Hi @gjpin
check "high-cpu-allocated" {
source = "prometheus"
query = "..."
query_window = "1m"
group = "cpu-allocated"
strategy "threshold" {
upper_bound = 100
lower_bound = 70
delta = 1
}
}
check "low-cpu-allocated" {
source = "prometheus"
query = "..."
query_window = "1m"
group = "cpu-allocated"
strategy "threshold" {
upper_bound = 30
lower_bound = 0
delta = -1
}
} Give it a try and let us know how it goes 🙂 |
@lgfa29 thanks it did help but its not mentioned anywhere in the Hashi documentation yet (quite fix and hard to find 🥇 ). Hashi need do a lot better in terms of documentation. |
Hi @goutham-sabapathy 👋 I'm glad to hear the new feature worked for you. We are aware of documentation gaps and we're tracking that in #574. While that's definitely not ideal, the assertion that we need to do "a lot better" seems a little exaggerated and non-productive to the discussion. Writing thoughtful and well organized documentation takes time and effort and, unfortunately, we haven't had the chance to take on these items. As we approach the general availability of the Nomad 1.4.0 I'm planning on closing these documentation gaps. If there's anything else you would like to see documented, feel free to add a comment in #574. |
🙃 |
Hello everyone!
My issue seems similar to #560 , but since it does not provide full logs I'm not exactly sure it is.
Nomad version: 1.2.6
Nomad autoscaler version: 0.3.5
hcloud (Hetzner) scaling plugin
Issue description:
I've set 2 checks within the same policy, both with the threshold strategy. However, the checks do not get executed.
If I set a single check instead, it does get executed.
These two checks do not create a conflict between each other. They both look at the same prometheus query result, but have different lower/upper bounds (0-30 vs 70-100).
Setting the agent log level to "TRACE" and the query result being roughly ~3, it shows that the "high-cpu-allocated' check does not return any result as expected:
However, the "low-cpu-allocated" check should have led to a scaling execution:
Agent configuration:
Policy:
What could be the reason for the scaling not to be executed?
I've read the documentation multiple times and I'm not sure what am I missing.
Thank you in advance!
The text was updated successfully, but these errors were encountered: