-
Notifications
You must be signed in to change notification settings - Fork 312
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(duplication): add options to support cluster name only used for …
…duplication and allow any other cluster id except myself to be ignored (#2000) The purpose of this PR is to optimize configurations for duplications. Firstly, many Pegasus clusters are configured with the same `cluster_name` (namely `[replication]cluster_name`). However, once we decide to duplicate tables between them, their `cluster_name` have to be changed to be distinguished from each other -- this might lead to side effects. Secondly, consider a scenario where many clusters are duplicated to a target cluster. This means we have to add many cluster ids to the `*.ini` file of the target cluster, and the target cluster might be restarted very frequently. Thus following options are added to solve both problems: ```diff [replication] + dup_cluster_name = + dup_ignore_other_cluster_ids = false ``` `[replication]dup_cluster_name` is added only for duplication in case `cluster_name` has to be changed, while `[replication]dup_ignore_other_cluster_ids` is added so that only the target cluster id should be configured and there is no need to add any other cluster id.
- Loading branch information
Showing
15 changed files
with
200 additions
and
62 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.