[英]ArangoDB cluster stop after one node failure
I have ArangoDB cluster with 3 nodes.我有 3 个节点的 ArangoDB 集群。 First one has service.config:
第一个有service.config:
> ExecStart=/usr/bin/arangodb \
--starter.data-dir=/var/lib/arangodb3/cluster \
--server.storage-engine=rocksdb \
--auth.jwt-secret=/etc/arangodb3/arangodb.secret \
--agents.agency.supervision-grace-period=30 \
--log.file=true \
--log.dir=/var/log/arangodb3/cluster \
--log.verbose
TimeoutStopSec=60
and two other nodes have:和另外两个节点有:
> ExecStart=/usr/bin/arangodb \
--starter.data-dir=/var/lib/arangodb3/cluster \
--server.storage-engine=rocksdb \
--auth.jwt-secret=/etc/arangodb3/arangodb.secret \
--agents.agency.supervision-grace-period=30 \
--starter.join arangodb01.domain.com \
--log.file=true \
--log.dir=/var/log/arangodb3/cluster \
--log.verbose
It works fine until any node stop.它工作正常,直到任何节点停止。 After one node stop no requests processed.
在一个节点停止后,不再处理任何请求。 I see in "[root@arangodb01 ~]# journalctl -u arangodb " only:
我只在“[root@arangodb01 ~]# journalctl -u arangodb ”中看到:
>We're master, try to remain it component=arangodb\
>Master changed callback from [arangobd01 IP]:57722 component=arangodb\
>Received GET /hello request from [arangobd02 IP]:38436 component=arangodb
Is is possible to work if only 2 nodes work in cluster?如果只有 2 个节点在集群中工作,是否可以工作?
UPD: I face problem with shard migrtion/ This is the problem of my cluster UPD:我面临分片迁移问题/这是我的集群的问题
Finally I found the reason of "bad" shards.最后我找到了“坏”碎片的原因。 For every collection you create in cluster check "replicationFactor" in info section of collection.
对于您在集群中创建的每个集合,请检查集合信息部分中的“replicationFactor”。 By default it is 1 and if you create it with the help of API it is "replicationFactor: (cluster only)"
默认情况下它是 1,如果你在 API 的帮助下创建它,它是“replicationFactor: (cluster only)”
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.