Project

General

Profile

Subtask #18786

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

rbd-mirror A/A: create simple image distribution policy

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

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
Start date:
02/01/2017
Due date:
% Done:

0%

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

Description

The simple distribution policy should just attempt to assign <number of images> / <number of up instances> to each rbd-mirror instance. The mapping produced by the policy should be stable (i.e. adding or removing an instance won't cause a complete re-shuffle) and persistently recorded. The mapping should be separate from the policy since it should be able to be re-used between policies. The mapping needs to record the current and future states of the mapping (i.e. currently unassigned, requested attach to instance XYZ).

The goal will to use an interface that will support cleanly swapping out the "simple" policy with one that can handle hotspots and other logic under Phase 3. Design for this configuration-level swap-out now so that work can continue on Phase 3 even after freeze.

History

#1 Updated by Jason Dillaman over 2 years ago

  • Description updated (diff)

#2 Updated by Venky Shankar over 2 years ago

  • Assignee set to Venky Shankar

#3 Updated by Venky Shankar over 2 years ago

  • Status changed from New to In Progress

#4 Updated by Venky Shankar over 2 years ago

I'm rebasing my branch (https://github.com/vshankar/ceph/commits/rbd-mirror-image-distribution) with master now. Will send a PR once that's done (after fixing conflicts).

#5 Updated by Venky Shankar over 2 years ago

Splitting into multiple PRs. https://github.com/ceph/ceph/pull/15691 introduces simple policy for image distribution amongst mirror instances.

Will post related PRs that do the actual distribution (need to resolve conflicts due to rebase).

#6 Updated by Venky Shankar almost 2 years ago

  • Status changed from In Progress to Need Review

#7 Updated by Jason Dillaman almost 2 years ago

  • Status changed from Need Review to Resolved

Also available in: Atom PDF