syncing data
hi there,
I have a situation that after joining a new node to a galera cluster, the data is not being copied to the new node.
What can I do?
Also, if I ever need to do a force push, how can I do this (other than taking a restoring a dump)?
Thanks
-
Hi John,
Galera uses State Snapshot Transfer (SST) to get synced for the very first time when joining the cluster. You can use mysqldump, rsync or xtrabackup to perform SST, configurable under wsrep_sst_method parameter (defaults to rsync). Details at http://galeracluster.com/documentation-webpages/statetransfer.html .
To force for SST, you can just remove grastate.dat, or simply remove all contents inside MySQL data directory. This process is automatically triggered by Galera, provided that you have configured the required parameters correctly.
Regarding data is not being copied, did you see any error inside MySQL error log? We can assist you if you don't mind to share the content of my.cnf and MySQL error log here (caution this is public forum), otherwise please submit a support ticket at http://support.severalnines.com/tickets/new and attach the files that I mentioned.
Regards,
Ashraf
Please sign in to leave a comment.
Comments
2 comments