Project

General

Profile

Actions

Subtask #18789

closed

Feature #18765: rbd-mirror: add support for active/active daemon instances

rbd-mirror A/A: coordinate image syncs with leader

Added by Jason Dillaman over 7 years ago. Updated almost 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

The follower instances should send a "sync start" request to the leader before starting a full image sync. If there are available sync slots available, the leader will ack the request which will allow the follower instance to proceed with the sync. The sync state should be persisted in case of leader fallover.

New InstanceWatcher RPC messages:
  • Sync Request: sent from peer to leader to coordinate image sync operation
  • Sync Response: sent from leader to to peer when sync is permitted to start
  • Sync Start: sent from peer to leader when image sync process starts
  • Sync Complete: sent from peer to leader when image sync process completes
Actions

Also available in: Atom PDF