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

   <!-- Greeting -->
   Hi @wanwancloud! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the 
incubator-hugegraph team.
   
   <!-- Answer -->
   你的配置和日志里出现的 raft 相关参数(如 raft.endpoint、raft.election_timeout_ms 
等)已经被废弃,HugeGraph 现在只识别注册在 OptionSpace 
里的参数,未注册的会被直接警告为“redundant”[参考](https://github.com/apache/incubator-hugegraph/blob/337dc86567834acd717a2240a79fef2815d4bb6f/hugegraph-commons/hugegraph-common/src/main/java/org/apache/hugegraph/config/HugeConfig.java)。建议只保留官方文档和源码里明确支持的
 raft 配置项,比如 
raft.mode、raft.safe_read、raft.group_peers、raft.election_timeout、raft.rpc_connect_timeout、raft.rpc_timeout
 等,参数名和单位要与源码一致(比如 raft.election_timeout,单位毫秒,默认 10000)。
   
   RocksDB 分布式部署常见问题包括 OOM 导致数据损坏、SST 文件 ahead of WALs、lock 文件未释放等。建议:  
   1. JVM 内存调大(-Xmx/-Xms),  
   2. 优化 
rocksdb.write_buffer_size、rocksdb.max_write_buffer_number、rocksdb.block_cache_size,
  
   3. 多盘环境用 rocksdb.data_disks,  
   4. 定期 compact,  
   5. 遇到 SST/WAL 不一致可用 ldb repair 工具修复,  
   6. lock 问题需确保所有进程都已关闭再初始化,必要时手动删除 lock 
文件(注意数据安全)[参考](https://github.com/apache/incubator-hugegraph/issues/2762)。
   
   Cassandra 后端 netty-all 兼容性问题,HugeGraph 1.5.0 推荐用 Cassandra 3.1x,4.x 存在 
breaking change,建议降级到 3.1x 
版本[参考](https://github.com/apache/incubator-hugegraph/issues/2768)。1.7 及以后 
Cassandra 将不再是主力支持后端,官方推荐生产环境用 HStore(Raft+RocksDB 组合),未来也会逐步淘汰 
HBase/Cassandra[参考](https://github.com/apache/incubator-hugegraph/discussions/2737)。
   
   如果你需要分布式高可用,建议直接用 HStore(Raft+RocksDB),配置 raft.group_peers、raft.mode=true 
即可,避免使用已废弃参数。遇到 raft 相关异常,需确保所有节点 raft 
配置一致,路径可写,端口无冲突,且依赖包版本匹配[参考](https://github.com/apache/incubator-hugegraph/issues/2725)。
   
   如需进一步定位 RocksDB 或 Cassandra 的具体报错,请补充详细的错误日志。
   
   
   <!-- 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/bfc6df18-e943-4892-bae5-3f1392144751?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/bfc6df18-e943-4892-bae5-3f1392144751?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/bfc6df18-e943-4892-bae5-3f1392144751?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/bfc6df18-e943-4892-bae5-3f1392144751?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/bfc6df18-e943-4892-bae5-3f1392144751?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/bfc6df18-e943-4892-bae5-3f1392144751?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/bfc6df18-e943-4892-bae5-3f1392144751?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: [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]

Reply via email to