]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm/schedule: assign/map ranks
authorSage Weil <sage@newdream.net>
Fri, 23 Apr 2021 19:28:13 +0000 (15:28 -0400)
committerSage Weil <sage@newdream.net>
Wed, 19 May 2021 12:43:14 +0000 (08:43 -0400)
commitde03942f806cb16e00259f2397446afb9322c3f1
tree35e532f7afea00d84901be66e11460bad3619a87
parent5e8f184be8091fdea8d7856a243dca913180e2a9
mgr/cephadm/schedule: assign/map ranks

If we are passed a rank_map, use it maintain one daemon per rank, where
the ranks are consecutive non-negative integers starting from 0.

A bit of refactoring in place() so that we only do the rank allocations
on slots we are going to use (no more than count).

Signed-off-by: Sage Weil <sage@newdream.net>
src/pybind/mgr/cephadm/schedule.py
src/pybind/mgr/cephadm/tests/test_scheduling.py