We have an old zookeeper 3-cluster quorum, with some permanent routing info stored in znodes/data. Now we are setting up another brand new 3-cluster quorum on a different data center, and we want to migrate the routing info to it. What's the best reliable way to do this?
Will simply copy the transaction log do?
Or better with snapshot?
Or if there are some tools to extract data from old znodes and replay creation onto the new ones?
Similar question found, but not answered best way to copy data across 2 zookeeper cluster?
I know a couple of ways,
One is the backup-restore, i.e. you copy the zookeeper data dir from one cluster to the other, (every nodes data dir). The transaction log is constantly being written to, so that might depend if you can stop your old cluster or not. Backup wise it think the snapshots are the way to go. The snapshots are point in time copies if your node's data when the transaction log grows to large. I myself backup the epoch files and snapshot files.
Another way is to use zkcopy to copy data between two zookeeper clusters.
Another way is to use exhibitor, but it might be a bit more complicated to setup than two other methods.