]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/: add pool min_size parameter for min acting set size
authorSamuel Just <sam.just@inktank.com>
Mon, 29 Oct 2012 22:35:09 +0000 (15:35 -0700)
committerSamuel Just <sam.just@inktank.com>
Wed, 7 Nov 2012 19:37:42 +0000 (11:37 -0800)
commit13486857cf3940d9fe910cbcc57fe5c882af3f3d
tree568639651202475023f44306405bfbc8e17fc0ba
parent3faefdd24205380c396c3c93b2a1e378eb3ff8e9
osd/: add pool min_size parameter for min acting set size

Otherwise, a pg might go active with a single osd in the
acting set.  If that osd subsequently dies, we potentially
loose client writes.  Note: it's still possible for the
acting set to exceed min_size but fail to obey the spirit
of the user's crush settings (e.g., min_size is 2, but both
osds happen to be no the sam node).

Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil: <sage@inktank.com>
src/common/config_opts.h
src/mon/OSDMonitor.cc
src/osd/OSD.cc
src/osd/OSDMap.cc
src/osd/PG.cc
src/osd/PG.h
src/osd/osd_types.cc
src/osd/osd_types.h