dosubot[bot] commented on issue #2787:
URL: 
https://github.com/apache/incubator-hugegraph/issues/2787#issuecomment-2952364209

   <!-- Answer -->
   你的配置有几点需要调整:
   
   1. raft.group_peers 应该只写在 graphs/hugegraph.properties 里,不要放在 
rest-server.properties 里。rest-server.properties 只负责 REST/RPC 服务,不负责 Raft 
集群发现。[参考](https://github.com/apache/incubator-hugegraph-doc/blob/53532bdca00b274f974bdd2dbfe10717190585c1/content/en/docs/config/config-guide.md)
   
   2. raft.mode 已经废弃,建议删除。只要配置了 raft.group_peers 就会自动进入 Raft 
模式。[参考](https://github.com/apache/incubator-hugegraph-doc/blob/53532bdca00b274f974bdd2dbfe10717190585c1/content/en/docs/config/config-option.md)
   
   3. 
raft.endpoint、raft.election_timeout_ms、raft.rpc_connect_timeout_ms、raft.rpc_timeout_ms
 这些参数也都废弃了,建议用 raft.election_timeout、raft.rpc_connect_timeout、raft.rpc_timeout 
替换,单位分别是毫秒和秒。[参考](https://github.com/apache/incubator-hugegraph-doc/blob/53532bdca00b274f974bdd2dbfe10717190585c1/content/en/docs/config/config-option.md)
   
   4. 你的 
rocksdb.data_path、rocksdb.wal_path、backend、serializer、store、raft.group_peers 
都是必须的,没问题。所有节点 graphs/hugegraph.properties 必须完全一致,端口不能冲突。
   
   5. 建议升级到 HugeGraph 1.5.0 及以上版本,分布式部署更稳定,且 raft/hstore 相关配置更规范,需用 Java 
11。[参考](https://github.com/apache/incubator-hugegraph-doc/blob/53532bdca00b274f974bdd2dbfe10717190585c1/content/en/docs/quickstart/hugegraph-server.md)
   
   6. rocksdb 性能建议:合理设置 
rocksdb.write_buffer_size、rocksdb.max_write_buffer_number、rocksdb.block_cache_size,多盘用
 rocksdb.data_disks,JVM 内存调大,定期 
compact。[参考](https://github.com/apache/incubator-hugegraph/issues/2762)
   
   只要按上述调整,理论上可以组成 Raft 集群。如果还有异常,建议贴出具体报错日志。
   
   
   <!-- 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/dd60941e-6921-4e8c-86f5-1d9ea50252da?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/dd60941e-6921-4e8c-86f5-1d9ea50252da?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/dd60941e-6921-4e8c-86f5-1d9ea50252da?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/dd60941e-6921-4e8c-86f5-1d9ea50252da?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/dd60941e-6921-4e8c-86f5-1d9ea50252da?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/dd60941e-6921-4e8c-86f5-1d9ea50252da?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/dd60941e-6921-4e8c-86f5-1d9ea50252da?feedback_type=other)</sup>&nbsp;&nbsp;[![Join
 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[!
 [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: issues-unsubscr...@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@hugegraph.apache.org
For additional commands, e-mail: issues-h...@hugegraph.apache.org

Reply via email to