Open dsnlevi opened 7 years ago
normal scenario: slave read entry from replicated file, and write to block device slave is read only
failover scenario: slave receive failover command from control slave continue replay replicated file which remained, slave only read after exhaust all replicated file, slave switch to read and write
slave crash and restart take cache recover
todo:
GetJournalMarker interface should define more clean
VolumeStatus should contain 4 dimension, volume status pull from dr server volume status from sg control(add, attach, delete) master/slave replication enable/disable/failover rw/ro
slave replayer should use replication uuid to local which journal file will be replayed
remote sg client replay journal differ from local sg client replay journal.
solution:
use cache recover from replicate journal and add to cache, how to keep sequence
replayer just direct read from replicated journal file