【发布时间】:2016-10-14 09:56:40
【问题描述】:
我有以下场景:
- 我有一个域名
couchbase.myorg.com - 该记录有 1 个 A 记录,例如
10.0.0.5,它是 Couchbase 集群中的一个节点。 - couchbase 集群有 5 个节点 10.0.0.5 - 10.0.0.9
- 客户端使用这个连接字符串:
couchbase://couchbase.myorg.com/my_bucket - 我正在使用 couchbase python client,它使用 libcouchbase C 库。
问题:
在以下情况下是否需要重新启动客户端才能获取集群更新:
- 如果
10.0.0.6从集群中移除。 - 如果
10.0.0.6从集群中移除并替换为10.0.0.10的另一个节点。 - 如果
10.0.0.10添加到集群中现有的5个节点。
【问题讨论】:
-
根据developer.couchbase.com/documentation/server/4.5/sdk/c/…这不是必须的:
After the offending node has been failed over the client will detect the node down within a matter of seconds. When the SDK detects a node has been failed over, it will remove it internally from its list of cluster nodes.
标签: python couchbase libcouchbase