[sheepdog] [PATCH] sheep: initiative to send leave event to cluster when shutdown
Yunkai Zhang
yunkai.me at gmail.com
Tue Jun 26 17:31:30 CEST 2012
On Tue, Jun 26, 2012 at 11:28 PM, Yunkai Zhang <yunkai.me at gmail.com> wrote:
> From: Yunkai Zhang <qiushu.zyk at taobao.com>
>
> Sheep will stop itself after received collie shutdown CMD, but zookeeper
> server can't detect this leaving action until session timeout(30 seconds
> at this time), as a result we have to wait a few seconds before we can
> restart sheep. This is very annoying.
>
> Calling cluster_leave() before sheep exit can solve this problem.
s/cluster_leave/leave_cluster/
--
Yunkai Zhang
Work at Taobao
More information about the sheepdog
mailing list