]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/OSDMonitor: reweight-by-pg
authorSage Weil <sage@redhat.com>
Mon, 4 Aug 2014 22:40:35 +0000 (15:40 -0700)
committerSage Weil <sage@redhat.com>
Tue, 19 Aug 2014 15:16:39 +0000 (08:16 -0700)
commit01cb40547c7ad2b4724c4f388d753c1938427ff2
tree803aa0cf2c5746d403c99535fb1f39a82b1fc4eb
parentab886c4a0be6f15e4b60daa82ce692337be4845b
mon/OSDMonitor: reweight-by-pg

This is just like reweight-by-utilization, but looks purely at the PG to
OSD mapping, not at the number of bytes used on the target disks.  This
allows the reweighting to be done before any data is written into the
cluster, when no data will need to migrate as a result of the reweight.

Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/MonCommands.h
src/mon/OSDMonitor.cc
src/mon/OSDMonitor.h