I have a running setup of Percona MySQL 5.7. I would like to try out Percona XtraDB cluster. The current data size is ~500GB. From what I've observed (seen in a couple of YouTube videos: https://www.youtube.com/watch?v=uUVdte3wB3I ), I reckon that the cluster members do the initial sync from the currently serving master.
However, in my case, syncing 500 GB of data would take ages, which I can't afford.
On the other hand, I have a backup of the current data, taken using percona-innobackupex. Can I use this backup to seed the cluster members (like I would feed the slave while doing master-slave replication) so that the initial sync takes less time?
Mysql – seed Percona XtraDB cluster from the existing backup
clusteringfailoverMySQLpercona-server
Related Question
- MySQL – Error 1236 From Master After Restored Replication
- Mysql – Transaction speed benchmarks for theSQL v5.6 replication – seems very slow
- MySQL 5.5 Replication – How to Replicate to Galera/Percona XtraDB Cluster
- MySQL – Fix Slave Skipping Some Updates
- How to Make an Async Slave Track All Nodes in Percona XtraDB Cluster
- MySQL Solution to Sync 3 servers data
- MySQL – Fixing Incomplete Replication on Next Site Call
Best Answer
Yes you can.
create grastate.dat file in full backup directory and add the following lines
version: 2.1
uuid: e0d744f3-c88a-11e6-ad0d-6ed1e3c29e6d
seqno: 0
cert_index:
Back up is ready to be copied over to the MySQL data directory.
Stop mysql service
Delete all contents in /var/lib/mysql
copy-back prepare backup
innobackupex --copy-back /restore/full
chown mysql directory to mysql.mysql
Config galera variables in my.cnf
Start mysql
You can find more information in this topic:
http://severalnines.com/blog/how-avoid-sst-when-adding-new-node-galera-cluster