I have a fairly big AOF to migrate to a clustered architecture. I am currently using this approach
- N-1 nodes in the cluster are empty
- the Nth has all data
As soon as you load the data in the Nth, Redis realizes the node has keys he should not have, and marks them for import; then redis-trib.fix does the redistribution magic.
Anyway it takes time and consumes a lot of bandwidth
If I split the AOF in N parts, and restart all redis instances, do I gain anything? Either in time or network traffic saved?
If yes, is there a reliable way to split an AOF in parts? N is reasonably small, so, if I have to do some manual work on the tail and head of each split, it is fine.