]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/MonClient: implement weight-based mon selection
authorxie xingguo <xie.xingguo@zte.com.cn>
Sat, 16 Mar 2019 09:48:19 +0000 (17:48 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Wed, 20 Mar 2019 04:17:00 +0000 (12:17 +0800)
commit8ca47bfc5fc2f1a3ef1166823708d990243caeb3
tree71947efa3ee247da72078d4a4d1f492f523a547d
parent9908420403944c934c0515c5c527ec1051bc5097
mon/MonClient: implement weight-based mon selection

- first choose mon by priority, lowest first
- if there are still multiple targets, then choose them by their
  corresponding weight. If no customized or all zero weights specified,
  all targets will be selected at random.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/mon/MonClient.cc