Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] How to check hugegraph node(role) status like master-worker? #2533

Open
1 task done
hexuxu110 opened this issue Apr 25, 2024 · 3 comments
Open
1 task done
Labels
inactive question Further information is requested

Comments

@hexuxu110
Copy link

Problem Type (问题类型)

others (please edit later)

Before submit

  • 我已经确认现有的 IssuesFAQ 中没有相同 / 重复问题 (I have confirmed and searched that there are no similar problems in the historical issue and documents)

Environment (环境信息)

  • Server Version: 1.0.0 (Apache Release Version)
  • Backend: RocksDB x nodes, HDD or SSD
  • OS: xx CPUs, xx G RAM, Ubuntu 2x.x / CentOS 7.x
  • Data Size: xx vertices, xx edges

Your Question (问题描述)

如何查看hugegraph 主从同步数据情况

Vertex/Edge example (问题点 / 边数据举例)

如何查看hugegraph 主从同步数据情况

Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)

如何查看hugegraph 主从同步数据情况
Copy link

dosubot bot commented Apr 25, 2024

在HugeGraph中,虽然没有直接的方法来查看主从同步数据情况,但您可以通过ServerInfoManager类的相关方法和属性来间接获取同步状态的信息。这包括检查服务器的角色(主或从)、它们是否存活,以及心跳机制来确保节点间的正常通信。您可以通过以下方式来推断同步状态:

  1. 检查服务器角色和状态:使用selfIsMaster()方法来确认当前节点是否为主节点,并通过heartbeat()方法来更新和检查服务器的存活状态。
  2. 心跳机制:定期的心跳更新显示节点间的通信是正常的,这是数据同步可能正常进行的一个好指标。
  3. 服务器信息:通过serverInfo(Id serverId)allServerInfos()方法,您可以获取特定服务器或所有服务器的信息,进而评估集群的整体健康和同步状态。
  4. 负载和任务分配:方法如pickWorkerNode(Collection<HugeServerInfo> servers, HugeTask<?> task)decreaseLoad(int load)提供了关于集群中任务和负载分配的信息,这对于维持同步非常重要。

通过这些方法,您可以获得关于HugeGraph主从同步状态的全面视图。更多细节和代码示例可以在ServerInfoManager.java中找到。

Details

Sources


About Dosu
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

To continue the conversation, mention @dosu.

@dosubot dosubot bot added the question Further information is requested label Apr 25, 2024
@imbajin
Copy link
Member

imbajin commented Apr 25, 2024

U could refer this #2265 to check more latest info about distributed store (if u want to use Raft + RocksDB mode)

@imbajin imbajin changed the title 如何查看hugegraph 主从同步数据情况 [Question] How to check hugegraph node(role) status like master-worker? Apr 26, 2024
Copy link

Due to the lack of activity, the current issue is marked as stale and will be closed after 20 days, any update will remove the stale label

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
inactive question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants