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

   <!-- Answer -->
   你的集群 store 节点状态正常,但分区数、图数据量和副本信息都为 0,说明分区没有被分配。根据 HugeGraph 1.5.0 
的实现和社区经验,分区分配不是在服务启动或 schema/图创建时自动完成的,而是需要 PD(Placement Driver)和 Store 
节点全部注册、选主后,由内部任务或显式 API 触发分区分配和初始化。如果没有触发,相关统计接口会一直为空。
   
   常见原因和排查建议如下:
   
   1. 检查 PD 和 Store 配置,确保 initial-store-list、raft peers-list、端口、IP 
等完全一致,且所有节点都能互通,避免配置不一致导致分区分配逻辑未触发。[相关讨论](https://github.com/apache/incubator-hugegraph/issues/2716)
   2. 检查日志(尤其是 PD 节点日志),确认没有分区分配失败、raft 选主异常、注册超时等报错。
   3. 部分场景下需要通过 REST/gRPC 显式触发分区分配(如手动扩容、重平衡等),可参考 PD 的相关 API 
文档或源码说明,确认是否需要手动调用分区分配接口。
   4. RocksDB 作为分布式后端时,分区分配和数据写入流程依赖于 PD/Store 
协同,部分配置或初始化顺序不当会导致分区未分配。[相关说明](https://github.com/apache/incubator-hugegraph/discussions/2737)
   5. 官方推荐分布式部署优先使用 ScyllaDB 或 HBase,RocksDB 
更适合单机场景,分布式模式下可能有额外限制或配置要求。[官方建议](https://github.com/apache/incubator-hugegraph/discussions/2710)
   
   建议你重点排查 PD/Store 配置和日志,并确认是否需要手动触发分区分配。如果日志和配置都正常但分区依然为空,可以补充下 graph/schema 
创建和数据写入的具体操作步骤,以及相关日志片段,便于进一步定位。
   
   
   <!-- 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/ab6a0ca5-f873-4d98-b18f-77075c5a1015?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/ab6a0ca5-f873-4d98-b18f-77075c5a1015?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/ab6a0ca5-f873-4d98-b18f-77075c5a1015?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/ab6a0ca5-f873-4d98-b18f-77075c5a1015?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/ab6a0ca5-f873-4d98-b18f-77075c5a1015?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/ab6a0ca5-f873-4d98-b18f-77075c5a1015?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/ab6a0ca5-f873-4d98-b18f-77075c5a1015?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/2821)


-- 
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