我当前使用 Apache IoTDB 的集群版本,配置有 3 个 ConfigNode 和 3 个 DataNode,并且我有服务器 IoTDB 1-3。当我关闭服务器IoTDB 1的ConfigNode和DataNode时,集群无法使用。 IoTDB 1 是第一个
cn_internal_port
等于 10710
,且 cn_consensus_port
等于 10720
的节点。错误消息是Msg: 301: Execute FragmentInstance failed: Raft Server is redoing Raft Log and cannot serve read requests now. Please try read later: org.apache.ratis.protocol.exceptions.ReadIndexException
。有谁知道当一个端口关闭时如何保持集群仍然运行?
您可以在 Apache IoTDB 中使用
show variables
命令来查看您的 SchemaRegion
设置是否使用强一致性协议。如果是这样,您需要将DataRegion
副本数设置为2,SchemaRegion
副本数设置为3。这样,您的IoTDB集群在单节点宕机的情况下仍然可以运行。