Skip to content

Add support to detect and self heal slow broker.#985

Merged
kidkun merged 8 commits into
linkedin:masterfrom
kidkun:slow_broker_2
Dec 7, 2019
Merged

Add support to detect and self heal slow broker.#985
kidkun merged 8 commits into
linkedin:masterfrom
kidkun:slow_broker_2

Conversation

@kidkun
Copy link
Copy Markdown

@kidkun kidkun commented Nov 6, 2019

Fix issue #975

Copy link
Copy Markdown
Collaborator

@efeg efeg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the patch -- added some comments.

@kidkun kidkun force-pushed the slow_broker_2 branch 2 times, most recently from a0da7ff to 9f83f3f Compare November 8, 2019 00:02
@kidkun kidkun requested a review from efeg November 8, 2019 00:07
@kidkun kidkun force-pushed the slow_broker_2 branch 2 times, most recently from b77e30f to 458b9d0 Compare November 12, 2019 19:39
@kidkun kidkun requested a review from efeg November 18, 2019 21:44
Copy link
Copy Markdown
Collaborator

@efeg efeg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the updates -- added more comments.

@kidkun kidkun requested a review from efeg November 21, 2019 22:30
Copy link
Copy Markdown
Collaborator

@efeg efeg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the updates -- added more comments.

@kidkun kidkun requested a review from efeg November 22, 2019 04:47
Copy link
Copy Markdown
Collaborator

@efeg efeg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the updates -- added some comments.

_shutdown = true;
}
_anomalies.addFirst(SHUTDOWN_ANOMALY);
_anomalies.add(SHUTDOWN_ANOMALY);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Can we add this assumption as a comment to make sure that in the future we don't break it by mistake.

@kidkun kidkun requested a review from efeg November 26, 2019 00:49
Copy link
Copy Markdown
Collaborator

@efeg efeg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kidkun Thanks for the updates -- added some comments we can merge after fix/release test.

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);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Can we use a constant rather than hardcoding the value?

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants