Continuous running rsync loop when trigger is always #1686
Replies: 1 comment
-
This is kind of down to the nature of kubernetes - the movers are run in jobs, and that allows the volsync controller to coordinate doing things like snapshotting, scheduling etc before/after the job completes (or retrying if it fails). As an example, the replicationdestination is one where it's common in rsync/rsync-tls movers to run this continuously - but the job will still complete after a replication is successful. This enables the volsync controller to know that the replicationdestination has completed, and proceed to take a destination snapshot (without the mover unintentionally writing anything to the disk). When it comes to pulling images from the repo, volsync isn't setting a specific |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In the current rsync-tls (and rsync-ssh) mover implementation, the source mover pod is terminated once the data transfer is completed. And depending on the trigger, the mover pod will be recreated immediately (trigger always) or at a specific time (trigger schedule).
For a huge number of PVCs getting synced to the remote data centre, this causes some issues.
Is it a wise idea to change the always trigger to run the rsync in a loop within the mover pod and only terminate and recreate the pod when the rsync fails? This will make the source mover pod run for a long time till the failure occurs or the ReplicationSource custom resource is explicitly deleted, thus minimising the above-mentioned issues.
Beta Was this translation helpful? Give feedback.
All reactions