Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

feat: add deploy mode #247

Merged
merged 2 commits into from
Oct 7, 2023
Merged

feat: add deploy mode #247

merged 2 commits into from
Oct 7, 2023

Conversation

ZuLiangWang
Copy link
Contributor

Rationale

In the current implementation, every time the CeresDB node changes, it will cause large-scale scheduling in the cluster. However, in the actual situation, we hope to control the affected range of the cluster when deploy and debug. Therefore, we need to add a deploy mode switch to control cluster scheduling.

Detailed Changes

  • Add DeployMode switch in RebalancedShardScheduler, shard topology will be locked when deploy mode is true.
  • Add some API to control DeployMode.

Test Plan

Pass all unit tests and test DeployMode take effect locally.

Copy link
Member

@ShiKaiWi ShiKaiWi left a comment

Choose a reason for hiding this comment

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

LGTM

@ShiKaiWi ShiKaiWi merged commit 8e38f4b into apache:main Oct 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants