zettadb / cluster_mgr

Clust_mgr is an important compnent of KunlunBase. It provides a HTTP API for KunlunBase users to do cluster management, provisioning and monitor work, so that uses can install a cluster, a kunlun-server node, a storage shard or a kunlun-storage node by calling such APIs. Such capability enables users to integrate KunlunBase management and provisioning as part of their existing application or GUIs. Cluster_mgr also provide other important cluster maintenance background work to make sure the KunlunBase clusters it serves can work efficiently and reliably.
http://www.kunlunbase.com
Apache License 2.0
10 stars 2 forks source link

重做备机节点 #61

Open jd-zhang opened 2 years ago

jd-zhang commented 2 years ago

Issue migrated from trac ticket # 484 www.kunlunbase.com

component: cluster manager | priority: major

2022-03-09 16:27:13: zhaowei@zettadb.com created the issue


该功能与新增一个storage node不同,专用于备机无效(主备研吃过大或者备机复制卡住)的情况。

  1. 使用主节点在收到命令的时候做备份,不要使用集群整体的备份数据。这样可以避免追binlog的时耗
  2. 新的备机节点放到原备机节点所在的机器上面去以便遵循peer部署架构。
  3. 可以一次选择一个或者多个或者一个storage shard的所有备机节点同时做备份
  4. 把备份数据从主节点复制到每个需要重做的备机节点所在的机器,用完后删除
  5. 为新做好的备机节点建立主备关系,然后停掉老备机节点的主备复制
  6. 增加了新备机节点到shard后,把原备机节点disable掉,但是不要删掉,让DBA删除
jd-zhang commented 2 years ago

2022-03-09 16:38:37: zhaowei@zettadb.com edited the issue description

jd-zhang commented 2 years ago

2022-04-18 19:06:00: zhangjindong@zettadb.com changed owner from wang.chaojie to chaojie

jd-zhang commented 2 years ago

2022-04-20 15:17:59: @chaojie1979

jd-zhang commented 2 years ago

2022-04-28 14:40:01: barney changed owner from chaojie to barney