Closed aravindvs closed 5 years ago
@aravindvs
selfHealingEnabled:[BROKER_FAILURE, DISK_FAILURE, GOAL_VIOLATION, METRIC_ANOMALY]
), but recentGoalViolations
field is empty, it means no goal violation detected recently.anomaly.detection.goals
config in config/cruisecontrol.properties
. I suspect it is because you does to include ReplicaDistribution
there, so GoalViolationDetector
does not detect for violation of this goal.This is the goals I have in the config:
anomaly.detection.goals=com.linkedin.kafka.cruisecontrol.analyzer.goals.RackAwareGoal,com.linkedin.kafka.cruisecontrol.analyzer.goals.ReplicaCapacityGoal,com.linkedin.kafka.cruisecontrol.analyzer.goals.DiskCapacityGoal,com.linkedin.kafka.cruisecontrol.analyzer.goals.NetworkInboundCapacityGoal,com.linkedin.kafka.cruisecontrol.analyzer.goals.NetworkOutboundCapacityGoal,com.linkedin.kafka.cruisecontrol.analyzer.goals.CpuCapacityGoal
Looks like ReplicaDistribution is indeed not there.. Let me try that and see if it works now..
@kidkun - thanks.. This does work now after I updated the goals.. btw the configurations wiki needs to be updated (https://github.com/linkedin/cruise-control/wiki/Configurations).. looks like we need a self.healing.goals
to be set properly, if not cruise control was crashing with:
Attempt to configure anomaly detection goals as a superset of self healing goals.
@aravindvs good to know! I will update the doc this week.
@aravindvs were you able to get cruise control to trigger auto rebalance every time brokers are added while scaling up? I found this issue and also added ReplicaDistributionGoal
to self.anomaly.detector.goals
and noticed the cruise control triggered a cluster rebalance once. I then scaled down the cluster and scaled it back up again, however, this time, cruise control did not trigger an auto rebalance and the two new brokers did not get any partitions assigned to those.
I am wondering if this is an issue with cruise control or something wrong with my configuration. We would expect the auto rebalancing to get triggered every time the ReplicaDistributionGoal
is violated but it looks like cruise control is not considering it being violated in this case.
@mhaseebmlk This sounds like a configuration issue. Please see https://github.com/linkedin/cruise-control/issues/1270#issuecomment-659609862.
Cruise control version: v2.0.59
I am testing out cruise control and noticed that cruise control doesn't auto-rebalance when we scale up the brokers.
These are the steps I did:
self.healing
turned on andanomaly.notifier.class=com.linkedin.kafka.cruisecontrol.detector.notifier.SelfHealingNotifier
Expectation:
Reality:
But the executor does nothing:
Questions: