Skip to main content
mdovhan
Gold ⭐️
Jan 23, 2020 3:42 PM UTC
Solved

Cloudbreak Autoscaling doesn't check all metric alarms

I created 12 metrics alarms and policy configurations based on these alarms (6 for scale out and 6 for scale in). But in cloudbreak logs I can see that only several alarms are checked and then "No scaling activity required".
Why doesn't cloudbreak check all metrics alarms? What the number of checked alarms are depend on? How can I change this behavior?

mdovhan
mdovhanAnswer
Gold ⭐️
Jan 24, 2020 2:05 PM UTC

The problem has been fixed in the next way:
- create all policies for scaling out first

- then create all policies for scaling in

autoscaling2.PNG

After checking first policy for scaling in (memory-used-ok) I can see "No scaling activity required" message in the log but now cloudbreak checks all my "critical" policies.

2 replies

mdovhan
mdovhanAuthor
Gold ⭐️
Jan 24, 2020 10:17 AM UTC

The current Policy configuration for Autoscaling:
autoscaling.PNG
However in cloudbreak logs I can see:

[cb-stack-id:1] Checking metric based alert: 'memory-used-critical'
[cb-stack-id:1] Finished cronTimeEvaluator for cluster 1 in 72 ms
[cb-stack-id:1] Ambari 'alertHistory' finished in 79 ms
[cb-stack-id:1] Checking metric based alert: 'memory-used-ok'
[cb-stack-id:1] Ambari 'alertHistory' finished in 58 ms
[cb-stack-id:1] Alert: memory-used-ok is in 'OK' state since 1027.78 min(s)
[cb-stack-id:1] Ambari 'clusterHosts' finished in 350 ms
[cb-stack-id:1] No scaling activity required
[cb-stack-id:1] Finished metricEvaluator for cluster 1 in 581 ms

 

Cloudbreak checks only "memory-used-critical" and "memory-used-ok" but ignores everything else.
Cloudbreak version is 2.9.1.


Translate
mdovhan
mdovhanAuthorAnswer
Gold ⭐️
Jan 24, 2020 2:05 PM UTC

The problem has been fixed in the next way:
- create all policies for scaling out first

- then create all policies for scaling in

autoscaling2.PNG

After checking first policy for scaling in (memory-used-ok) I can see "No scaling activity required" message in the log but now cloudbreak checks all my "critical" policies.

Translate