1 Star 1 Fork 0

Zhao Wei/cluster_mgr

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
README 1.28 KB
一键复制 编辑 原始数据 按行查看 历史
Zhao Wei 提交于 2021-02-15 15:38 . add entire cluster_mgr code base.
The cluster manager process maintains correct working status for storage shards and meta data shard of one or more Kunlun DDCs.
It's supposed to be given a metadata cluster's connection parameters and a list of cluster IDs to work on, plus a config file with properly set parameters. Edit a copy of the 'cluster_mgr.cnf' file and set parameters properly according to comments in it. and then startup cluster_manager program with correct parameters.
Start only one instance/process for each metadata shard, otherwise errors could occur in extreme conditions.
For this software to work correctly you must keep its assumptions below true:
0. The meta-data shard node provided in config file (meta_svr_ip and meta_svr_port) is really a current effective node of the metadata shard and it contains latest meta data nodes.
1. A shard's mysqld processes are all up and running, it's the local Linux system's service manager or cron's responsibility to keep them up and running.
2. Metadata shard always has almost latest meta/storage shard topology info or will be updated very soon. Inconsistency is allowed but the time window should be small otherwise leftover prepared transactions may not be discovered and ended. So if you added/removed a node to/from a shard you must update the metadata in metadata shard ASAP.
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zettadb_dzw/cluster_mgr.git
git@gitee.com:zettadb_dzw/cluster_mgr.git
zettadb_dzw
cluster_mgr
cluster_mgr
main

搜索帮助