Skip to content

Commit

Permalink
cluster manager: use etcd3 instead of etcd2 (#463)
Browse files Browse the repository at this point in the history
  • Loading branch information
solotzg authored Feb 19, 2020
1 parent 389e857 commit f09b8e9
Show file tree
Hide file tree
Showing 12 changed files with 80 additions and 1,829 deletions.
1 change: 1 addition & 0 deletions cluster_manage/check_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import toml
import pybind11
import setuptools
import etcd3
except Exception as e:
print(e)
exit(-1)
Expand Down
12 changes: 12 additions & 0 deletions cluster_manage/define.py
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'
317 changes: 0 additions & 317 deletions cluster_manage/etcd/__init__.py

This file was deleted.

Loading

0 comments on commit f09b8e9

Please # to comment.