[p4] Can Perforce replication achieve these results: would this hypothetical topology work in reality?
p4rfong <[email protected]>
| Newsgroups | gmane.comp.version-control.perforce |
|---|---|
| Message-ID | <[email protected]> |
Posted on behalf of forum user 'p4rfong'. You will have not have perfect synchronization. The master is always writing to a journal as transactions are taking place. The replica reads this journal and applies it to the replica server. The reason why the replication will not be realtime is because the replica is smart enough not to process a partial transaction which would corrupt the replica's data. The replica waits for the transaction to complete; then it plays back the latest transaction. So a large transaction could have a delay on the replica. But with a fast network and fast computers, users may not notice the delay. If processes spike on the master, then there may be a delay on the master. But when the journal is written, the replica can read the journal (and play it back when the transaction completes). Therefore, this does not corrupt the replica because the replica will wait on the master. The master and replica will eventually be synchronized. You can use a P4Broker, but I would recommend a command trigger if you can to not have a separate machine that can slow things down further. There are ways to write data to a supposedly read-only replica, but I would not recommend this. Use the forwarding replica capabilities to send read-write commands to the master which will propagate back to the replica. Workspaces can be shared. Just remove the Host: field. Shared workspaces are not still not recommended, however, because that can lead to confusion where one person checks out a file in their machine and the other person checks in the file. -- Please click here to see the post in its original format: http://forums.perforce.com/index.php?/topic/5546-can-perforce-replication-achieve-these-results-would-this-hypothetical-topology-work-in-reality _______________________________________________ perforce-user mailing list - [email protected] http://maillist.perforce.com/mailman/listinfo/perforce-user