dosubot[bot] commented on issue #2787: URL: https://github.com/apache/incubator-hugegraph/issues/2787#issuecomment-2952360942
<!-- Answer --> raft.group_peers 这个参数应该写在每个节点的 graphs/hugegraph.properties(或 hugegraph.properties)文件里,而不是 rest-server.properties。所有节点的 raft.group_peers 必须保持一致,格式如你写的这样。rest-server.properties 主要配置 REST 服务、RPC 服务等,不负责 Raft 集群成员发现。 如果你用的是新版 HStore(Raft+RocksDB)集群,配置方式已经逐步转向每个节点独立的 YAML 文件(如 application-store0.yml),每个节点用 raft.address 指定自己,所有节点用 pdserver.address 发现彼此,这时不再需要全局 raft.group_peers 参数,而是靠 PD 发现和管理集群成员。 如果你用的是传统 hugegraph-server 分布式(非 HStore),就把 raft.group_peers 写在 graphs/hugegraph.properties 里即可,其他 raft 相关参数(如 raft.election_timeout、raft.rpc_connect_timeout、raft.rpc_timeout)也建议写在这里,注意不要用 raft.endpoint、raft.election_timeout_ms 这类已废弃参数。 部署建议:所有节点配置完全一致,端口不冲突,初始化时每个节点都执行 init-store.sh,启动顺序建议 PD/Store/Server(如用 HStore),遇到报错可补充具体日志定位。[参考1](https://github.com/apache/incubator-hugegraph/issues/2725) [参考2](https://github.com/apache/incubator-hugegraph/discussions/2710) 如果你用 docker/docker-compose,注意环境变量要用 hugegraph. 前缀,挂载配置文件时确保每个节点配置独立且一致。[参考](https://github.com/apache/incubator-hugegraph/issues/2768) 如还有具体报错,欢迎贴出详细日志。 <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/b2e706b5-391f-4c2d-81d5-dfbb8eaac75d?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/b2e706b5-391f-4c2d-81d5-dfbb8eaac75d?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/b2e706b5-391f-4c2d-81d5-dfbb8eaac75d?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/b2e706b5-391f-4c2d-81d5-dfbb8eaac75d?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/b2e706b5-391f-4c2d-81d5-dfbb8eaac75d?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/b2e706b5-391f-4c2d-81d5-dfbb8eaac75d?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/b2e706b5-391f-4c2d-81d5-dfbb8eaac75d?feedback_type=other)</sup> [](https://go.dosu.dev/discord-bot) [! [Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/incubator-hugegraph/issues/2787) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
