Reputation: 125
I am working on multisite repository replication using VisualSVN Server. The replication between master and slave is working fine. My requirement is based on the scheduling time the synchronization should happen between master to slave and vice versa.
Here is an example: master repository is in India and slave repository is in the USA. Based on the time for e.g. 7:00 PM IST the sync should start from master to slave and 6:00 AM IST the sync should happen from slave to master.
Updating the question based on this comment:
I am looking for scheduled replication for the following scenario. Let us assume that master SVN repository is in India and slave SVN repository is in US.
Both master and slave are modifying on the same file, same line with different content. Assume that both have the same HEAD revision(100). Now slave commit first (101 revision), and next second there was network issues. Meanwhile master SVN repo also committing (101 revision). Now let's assume that the network issue is solved. Now at the time of sync, how this conflict scenario can be handled?
Can anyone please help me.
Upvotes: 1
Views: 381
Reputation: 30662
Both master and slave are modifying on the same file, same line with different content. Assume that both have the same HEAD revision(100). Now slave commit first (101 revision), and next second there was network issues. Meanwhile master SVN repo also committing (101 revision). Now let's assume that the network issue is solved. Now at the time of sync, how this conflict scenario can be handled?
There should be no conflicts by design. VDFS follows master-slave replication architecture and master VDFS service ensures that the transactions are committed in proper sequence and do not conflict.
You might want to read the article KB84: Comparing VDFS with master-master replication solutions.
VDFS replication is performed instantly and automatically and does not have any special replication scheduling now. VDFS slave repositories require access to the master repository in order to be writable. If the slave is unable to access its master, this VDFS slave is working in Read Only mode.
In case keeping Read Only slaves and enabling the replication on schedule is what you look for, you could use Windows Task Manager to Start and Stop VDFS service at required time or run the PowerShell cmdlets Suspend-SvnRepository
and Resume-SvnRepository
.
Upvotes: 0