我继承了一个问题,即MariaDB Galera集群只有三分之一的节点工作。
Node1: up and running in production and is accepting reads and writes
Node2: fresh install it just need to sync with node 1
Node3: fresh install it just need to sync with node 1
如果我在Node2 2/Node2 3上运行service mysql start
,它会将wsrep_local_state_comment
的状态从Synced
更改为Donor/Desynced
,并且会触发一个SST,但是我会有很多停机时间。
我有2TB的数据库,新添加的节点要同步大约需要5-7个小时,而且我负担不起停机时间(作为一个想法,白天我有1GB/分钟的二进制日志,晚上大约有4GB/小时的二进制日志)。
我每天晚上使用Percona XtraBackup进行db备份,我知道如何在新服务器上恢复它。
我的galera.cache
设置为32 at。
有没有一种在不触发SST的情况下恢复其他两个节点的方法?
我正在考虑将Node1的备份恢复到Node2,也许它会触发IST。
发布于 2023-02-21 02:26:53
仅当您有一个最新节点时,IST才能工作。它不适用于没有数据的节点;在这种情况下,您必须使用SST。
也许有办法去做SST。检查哪一个可能是最快的,或者至少是侵入性的,对你的情况。
https://dba.stackexchange.com/questions/323837
复制相似问题