-
Notifications
You must be signed in to change notification settings - Fork 411
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cluster manager: use etcd3 instead of etcd2 (#463)
- Loading branch information
Showing
12 changed files
with
80 additions
and
1,829 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
import toml | ||
import pybind11 | ||
import setuptools | ||
import etcd3 | ||
except Exception as e: | ||
print(e) | ||
exit(-1) | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/python3 | ||
|
||
TIFLASH = 'tiflash' | ||
TIFLASH_LABEL = {'key': 'engine', 'value': TIFLASH} | ||
REGION_COUNT = 'region_count' | ||
TIFLASH_REGION_COUNT = 'flash_region_count' | ||
LOCATION_LABELS = 'location_labels' | ||
REPLICA_COUNT = 'replica_count' | ||
LEARNER = 'learner' | ||
AVAILABLE = 'available' | ||
TIFLASH_CLUSTER_MUTEX_KEY = '{}/cluster/leader'.format(TIFLASH) | ||
LABEL_CONSTRAINTS = 'label_constraints' |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.