Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

优化增加节点时的检测逻辑 #13

Open
hlwanghl opened this issue Oct 14, 2020 · 0 comments
Open

优化增加节点时的检测逻辑 #13

hlwanghl opened this issue Oct 14, 2020 · 0 comments

Comments

@hlwanghl
Copy link
Contributor

增加节点时,会先检测一下原有节点的状态,然后再启动新加的节点。但是如果检测失败,当时启动就会失败,但之后的健康检查还是会拉起来,所以实际上这儿的检测就没起到预期的作用。

if [[ "$JOINING_NODES " == *"/$MY_IP "* ]]; then
local node; for node in $STABLE_NODES; do retry 5 1 0 checkEndpoint tcp:2181 ${node##*/}; done
fi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant