[sheepdog] [PATCH 0/3] Introduce delay recovery to sheep

Yunkai Zhang yunkai.me at gmail.com
Sun Jul 29 16:29:19 CEST 2012


From: Yunkai Zhang <qiushu.zyk at taobao.com>

With delay recovery, we can add(kill) multiple nodes into(from) cluster
leisurely, only one recovery operation will be triggered at the end of
delay recovery, so that it can help me to reduce cluster's fluctuation.

Yunkai Zhang (3):
  collie: add delay_recovery {start|stop} command
  sheep: do the real work of delay recovery
  collie: add collie delay_recovery info command

 collie/Makefile.am       |   3 +-
 collie/collie.c          |   1 +
 collie/collie.h          |   1 +
 collie/delay_recovery.c  | 128 +++++++++++++++++++++++++++++++++++++++++++++++
 include/internal_proto.h |   9 ++++
 include/sheepdog_proto.h |   4 ++
 sheep/group.c            |  72 +++++++++++++++++++-------
 sheep/ops.c              |  57 +++++++++++++++++++++
 sheep/sheep_priv.h       |   5 ++
 9 files changed, 260 insertions(+), 20 deletions(-)
 create mode 100644 collie/delay_recovery.c

-- 
1.7.11.2




More information about the sheepdog mailing list