]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon: limit initial quorum to mon_initial_members
authorSage Weil <sage@inktank.com>
Thu, 17 May 2012 20:27:30 +0000 (13:27 -0700)
committerSage Weil <sage@inktank.com>
Fri, 18 May 2012 23:23:57 +0000 (16:23 -0700)
commitdc9122cb82f55c04eb8b7997fab790e26b59ecdb
tree23b7a6a3d9b09f4113269019afe3a1b6f7c54b16
parent585adcf1a6174b392be9ccecc7cde7e7510db8e8
mon: limit initial quorum to mon_initial_members

This is a two-stage process.

 * If we start up, and have never joined a quorum, and initial members are
   specified, only include them in the monmap; put all others in the
   extra probe list.
 * We add missing members if necessary to make the monmap (and initial
   quorum) the right size.
 * If we probe someone that *has* participated in a successful quorum, we
   get their monmap, and restart, so this is moot.
 * We only call an election to create a new cluster if outside_quorum gets
   big enough (it will only include initial members) and if it includes us.

Signed-off-by: Sage Weil <sage@inktank.com>
src/mon/Monitor.cc