错误:(1)Aerospike中的不稳定群集如何解决此问题

时间:2019-07-10 05:18:45

标签: aerospike

我正在尝试使用网格概念设置具有2个节点的Aerospike DB集群,如果1个节点发生故障,则其他节点会引发不稳定集群错误。

如何解决此问题?

select *from bar;
Error: (1) unstable-cluster

1 个答案:

答案 0 :(得分:3)

如果第二个节点不断地进出,则集群处于迁移状态,并且您会看到此错误,因为您实际上正在运行带有select *的扫描作业。群集状态稳定后,它将返回给您结果。请参见https://discuss.aerospike.com/t/cluster-error-1-unstable-cluster/6264/16 AQL代码在其配置中将fail_on_cluster_change设置为true。 您可以通过将此设置为false进行测试,结果不可靠。

aql> get FAIL_ON_CLUSTER_CHANGE
FAIL_ON_CLUSTER_CHANGE = true  <-- default
aql> set FAIL_ON_CLUSTER_CHANGE false
FAIL_ON_CLUSTER_CHANGE = false  <-- set it so and retest.  You may see node connection error then on the node that is dropping in and out.