PXC集群添加新节点如何使用IST方式避免使用SST方式传输数据
2017-03-13 23:23
1406 查看
思路:
先搭建主从复制,然后将从库加入PXC集群中。
具体步骤:
选择集群中任意一个节点A,xtrabackup生成备份。
利用xtrabackup备份搭建从库B。
测试主从同步是否成功。
从库上stop slave,记录此时对应的主库binlog位置。
通过主库上的binlog位置获取数据库xid。
将主库A库grastate.dat拷贝到B库并修改seqno为对应的xid。
开启B库PXC相关配置(wsrep)。
B库start加入集群。
Question:
grastate.dat with seqno -1 on a healthy cluster. Why?
Answer:
A grastate.dat with a sequence number of -1 is fine on a running node.
When the cluster stops cleanly, the sequence number will be set to a value on each node. You’ll then have to bootstrap the cluster from the node which has the most advanced seqno.
先搭建主从复制,然后将从库加入PXC集群中。
具体步骤:
选择集群中任意一个节点A,xtrabackup生成备份。
利用xtrabackup备份搭建从库B。
测试主从同步是否成功。
从库上stop slave,记录此时对应的主库binlog位置。
通过主库上的binlog位置获取数据库xid。
将主库A库grastate.dat拷贝到B库并修改seqno为对应的xid。
开启B库PXC相关配置(wsrep)。
B库start加入集群。
Question:
grastate.dat with seqno -1 on a healthy cluster. Why?
Answer:
A grastate.dat with a sequence number of -1 is fine on a running node.
When the cluster stops cleanly, the sequence number will be set to a value on each node. You’ll then have to bootstrap the cluster from the node which has the most advanced seqno.
相关文章推荐
- 【转】使用TCP协议连续传输大量数据时,是否会丢包,应如何避免?
- 【转】使用TCP协议连续传输大量数据时,是否会丢包,应如何避免?
- 【转】使用TCP协议连续传输大量数据时,是否会丢包,应如何避免?
- 使用TCP协议连续传输大量数据时,是否会丢包,应如何避免?
- 如何使用CA/400批处理的方式传输数据
- PXC添加新节点只需IST传输的方法
- 使用TCP协议连续传输大量数据时,是否会丢包,应如何避免
- 使用TCP协议连续传输大量数据时,是否会丢包,应如何避免?
- 使用percona xtradb cluster的IST方式添加新节点
- 如何使用常用的6种方式对数据进行转换(一)
- 如何使用 Visual C# 2005 或 Visual C# .NET 向 Excel 工作簿传输数据
- 如何使用 Visual C# 2005 或 Visual C# .NET 向 Excel 工作簿传输数据
- 使用UltraWebTree时,如何在刷新后展开之前选中的节点,并绑定相关数据
- 如何使用 Visual C# 2005 或 Visual C# .NET 向 Excel 工作簿传输数据
- 在Web.Config文件中使用configSource,避免动态修改web.config导致asp.net重启(另添加一个Config文件用于管理用户数据)
- 4.如何使用常用的6种方式对数据进行转换(一)
- 如何使用 Visual Basic .NET 向 Excel 工作簿传输数据
- 大数据量表中如何有效使用非聚集索引及如何避免使用LEFT JOIN
- 使用asp.net 2.0的CreateUserwizard控件如何向自己的数据表中添加数据
- 如何使用 ADO 将数据从 ADO 数据源传输到 Excel