Add support to detect and self heal slow broker.#985
Merged
Conversation
efeg
requested changes
Nov 7, 2019
Collaborator
efeg
left a comment
There was a problem hiding this comment.
Thanks for the patch -- added some comments.
a0da7ff to
9f83f3f
Compare
b77e30f to
458b9d0
Compare
458b9d0 to
a0b45b4
Compare
a0b45b4 to
6a3d8c6
Compare
efeg
requested changes
Nov 21, 2019
Collaborator
efeg
left a comment
There was a problem hiding this comment.
Thanks for the updates -- added more comments.
efeg
requested changes
Nov 21, 2019
Collaborator
efeg
left a comment
There was a problem hiding this comment.
Thanks for the updates -- added more comments.
efeg
requested changes
Nov 23, 2019
Collaborator
efeg
left a comment
There was a problem hiding this comment.
Thanks for the updates -- added some comments.
| _shutdown = true; | ||
| } | ||
| _anomalies.addFirst(SHUTDOWN_ANOMALY); | ||
| _anomalies.add(SHUTDOWN_ANOMALY); |
Collaborator
There was a problem hiding this comment.
Nit: Can we add this assumption as a comment to make sure that in the future we don't break it by mistake.
efeg
approved these changes
Dec 5, 2019
| mockDetectorScheduler.shutdown(); | ||
| EasyMock.expectLastCall().andDelegateTo(executorService); | ||
| EasyMock.expect(mockDetectorScheduler.awaitTermination(MOCK_ANOMALY_DETECTION_INTERVAL_MS, TimeUnit.MILLISECONDS)).andDelegateTo(executorService); | ||
| EasyMock.expect(mockDetectorScheduler.awaitTermination(5000, TimeUnit.MILLISECONDS)).andDelegateTo(executorService); |
Collaborator
There was a problem hiding this comment.
Nit: Can we use a constant rather than hardcoding the value?
annaleeli
pushed a commit
to TeamCtrlC/cruise-control
that referenced
this pull request
Dec 17, 2019
efeg
pushed a commit
to efeg/cruise-control
that referenced
this pull request
Nov 10, 2020
…roperly. * Ensure that RackAwareDistributionGoal, TopicReplicaDistributionGoal, ReplicaDistributionGoal, LeaderReplicaDistributionGoal do not include brokers excluded for replica moves while computing balance constraints. * Fix incorect numOfflineTopicReplicasInB1 within rebalanceByMovingReplicasIn of TopicReplicaDistributionGoal. * Update the following dead configs, which are not supported after in cruisecontrol.properties in linkedin#985 broker.failure.exclude.recently.demoted.brokers=true broker.failure.exclude.recently.removed.brokers=true goal.violation.exclude.recently.demoted.brokers=true goal.violation.exclude.recently.removed.brokers=true
efeg
pushed a commit
to efeg/cruise-control
that referenced
this pull request
Nov 10, 2020
…roperly. * Ensure that RackAwareDistributionGoal, TopicReplicaDistributionGoal, ReplicaDistributionGoal, LeaderReplicaDistributionGoal do not include brokers excluded for replica moves while computing balance constraints. * Fix incorect numOfflineTopicReplicasInB1 within rebalanceByMovingReplicasIn of TopicReplicaDistributionGoal. * Update the following dead configs, which are not supported after in cruisecontrol.properties in linkedin#985 broker.failure.exclude.recently.demoted.brokers=true broker.failure.exclude.recently.removed.brokers=true goal.violation.exclude.recently.demoted.brokers=true goal.violation.exclude.recently.removed.brokers=true
efeg
pushed a commit
to efeg/cruise-control
that referenced
this pull request
Nov 10, 2020
…roperly. * Ensure that RackAwareDistributionGoal, TopicReplicaDistributionGoal, ReplicaDistributionGoal, LeaderReplicaDistributionGoal do not include brokers excluded for replica moves while computing balance constraints. * Fix incorect numOfflineTopicReplicasInB1 within rebalanceByMovingReplicasIn of TopicReplicaDistributionGoal. * Update the following dead configs, which are not supported after in cruisecontrol.properties in linkedin#985 broker.failure.exclude.recently.demoted.brokers=true broker.failure.exclude.recently.removed.brokers=true goal.violation.exclude.recently.demoted.brokers=true goal.violation.exclude.recently.removed.brokers=true
efeg
added a commit
that referenced
this pull request
Nov 11, 2020
…roperly (#1383) * Ensure that RackAwareDistributionGoal, TopicReplicaDistributionGoal, ReplicaDistributionGoal, LeaderReplicaDistributionGoal do not include brokers excluded for replica moves while computing balance constraints. * Fix incorect numOfflineTopicReplicasInB1 within rebalanceByMovingReplicasIn of TopicReplicaDistributionGoal. * Update the following dead configs, which are not supported after in cruisecontrol.properties in #985 broker.failure.exclude.recently.demoted.brokers=true broker.failure.exclude.recently.removed.brokers=true goal.violation.exclude.recently.demoted.brokers=true goal.violation.exclude.recently.removed.brokers=true
efeg
added a commit
to efeg/cruise-control
that referenced
this pull request
Nov 11, 2020
…roperly (linkedin#1383) * Ensure that RackAwareDistributionGoal, TopicReplicaDistributionGoal, ReplicaDistributionGoal, LeaderReplicaDistributionGoal do not include brokers excluded for replica moves while computing balance constraints. * Fix incorect numOfflineTopicReplicasInB1 within rebalanceByMovingReplicasIn of TopicReplicaDistributionGoal. * Update the following dead configs, which are not supported after in cruisecontrol.properties in linkedin#985 broker.failure.exclude.recently.demoted.brokers=true broker.failure.exclude.recently.removed.brokers=true goal.violation.exclude.recently.demoted.brokers=true goal.violation.exclude.recently.removed.brokers=true
efeg
added a commit
to efeg/cruise-control
that referenced
this pull request
Nov 11, 2020
…roperly (linkedin#1383) * Ensure that RackAwareDistributionGoal, TopicReplicaDistributionGoal, ReplicaDistributionGoal, LeaderReplicaDistributionGoal do not include brokers excluded for replica moves while computing balance constraints. * Fix incorect numOfflineTopicReplicasInB1 within rebalanceByMovingReplicasIn of TopicReplicaDistributionGoal. * Update the following dead configs, which are not supported after in cruisecontrol.properties in linkedin#985 broker.failure.exclude.recently.demoted.brokers=true broker.failure.exclude.recently.removed.brokers=true goal.violation.exclude.recently.demoted.brokers=true goal.violation.exclude.recently.removed.brokers=true
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix issue #975