Advertisement

KingbaseES V8R6集群环境备库未完成旧事务快照会影响主库Vacuum操作

阅读量:

前言

昨天同事遇到了一个有关vacuum的典型问题。

V8R6读写分离集群环境,一主多备。

版本:kingbaseesv008r006c004

问题现象:

主库日常巡检发现日志大量记录:

warning: The xmin variable represents a value that is several time units in the past. It's crucial to close open transactions promptly to prevent wraparound issues. Additionally, in certain scenarios, you may also need to commit or rollback old prepared transactions, or even consider dropping state replication slots.

集群同步方式:

synchronous_commit=on:确保主备不会丢失数据,并将备库接收后的日志内容写入磁盘后返回给主库以确认事务已完成。

synchronous_standby_names=any 1(*):优先实现同步(quorum),所有备用节点标记为quorum状态;最先完成连接的备用节点将被视为主节点;任何备用节点

全部评论 (0)

还没有任何评论哟~