是否支持双节点部署,一个节点有单点故障的风险
备份恢复到另外一个机器上,很简单
这两个只是工具,就算有故障,对集群没有影响,重新搭建一个就行,没必要搞双节点
可以,我们现在是做每日备份,没有做双节点部署。
主备集群也可以,主集群要是坏了,直接切到备集群,但直接同步是异步的,可能会有数据丢的风险
tiup cluster meta 可以用于备份元数据,用于主备节点的数据同步
Usage:
meta [command]Available Commands:
backup backup topology and other information of cluster
restore restore topology and other information of clusterFlags:
-h, --help help for metaGlobal Flags:
-c, --concurrency int max number of parallel tasks allowed (default 5)
–format string (EXPERIMENTAL) The format of output, available values are [default, json] (default “default”)
–ssh string (EXPERIMENTAL) The executor type: ‘builtin’, ‘system’, ‘none’.
–ssh-timeout uint Timeout in seconds to connect host via SSH, ignored for operations that don’t need an SSH connection. (default 5)
–wait-timeout uint Timeout in seconds to wait for an operation to complete, ignored for operations that don’t fit. (default 120)
-y, --yes Skip all confirmations and assumes ‘yes’
这个是工具,可以支持宕机的,如果不放心就写个监控,自己重启下
备份恢复