简体   繁体   English

检查Couchbase节点是否关闭

[英]checking if a Couchbase node is down

i am working with Couchbase server 2.5.1 and the java client. 我正在使用Couchbase服务器2.5.1和Java客户端。

the Couchbase auto fail-over happens after 30 seconds and Couchbase can only auto fail-over one node until you reset the fail-over counter. Couchbase自动故障转移将在30秒后发生,并且Couchbase只能自动故障转移一个节点,直到您重置故障转移计数器。 because of this limitations i need to develop my own fail over mechanism. 由于这种限制,我需要开发自己的故障转移机制。 i found all the rest commands the allow me to choose a node and fail-over it. 我发现所有其余命令都允许我选择一个节点并对其进行故障转移。 now i need to find a way to identify if a chosen node is down. 现在,我需要找到一种方法来确定所选节点是否已关闭。

has any one faced this problem? 有人遇到过这个问题吗?
does any one has any suggestions? 有没有人有什么建议?

after a long search, i found no official answer to my question. 经过长时间的搜索,我没有找到我的问题的官方答案。 as a result my solution will be to access each node using the Rest API, in case there was no response with in a pre defined time the node will be automatically failed -over using the nodes REST API. 因此,我的解决方案是使用Rest API访问每个节点,以防在预定时间内没有响应的情况下,该节点将自动失败-使用节点REST API进行故障转移。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM