This is an automated email from the ASF dual-hosted git repository. jin pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-hugegraph-doc.git
The following commit(s) were added to refs/heads/master by this push: new d62178bc doc: fix the url of node status checking (#414) d62178bc is described below commit d62178bc0e2e3fa2e6a151046894cc6b8dbfa480 Author: Soyan <523420...@qq.com> AuthorDate: Tue Aug 5 14:25:13 2025 +0800 doc: fix the url of node status checking (#414) * doc:fix the url of node status checking * doc: reformat json string --------- Co-authored-by: imbajin <j...@apache.org> --- .../docs/quickstart/hugegraph/hugegraph-hstore.md | 41 ++++++++++++++++++- .../en/docs/quickstart/hugegraph/hugegraph-pd.md | 46 ++++++++++++++++++++++ 2 files changed, 86 insertions(+), 1 deletion(-) diff --git a/content/cn/docs/quickstart/hugegraph/hugegraph-hstore.md b/content/cn/docs/quickstart/hugegraph/hugegraph-hstore.md index fd5eb65f..0e6bbb3d 100644 --- a/content/cn/docs/quickstart/hugegraph/hugegraph-hstore.md +++ b/content/cn/docs/quickstart/hugegraph/hugegraph-hstore.md @@ -201,5 +201,44 @@ curl http://localhost:8520/actuator/health 此外,可以通过 PD 的 API 查看集群中的 Store 节点状态: ```bash -curl http://localhost:8620/pd/api/v1/stores +curl http://localhost:8620/v1/stores ``` + +如果Store配置成功,上述接口的响应中应该包含当前节点的状态信息,状态为Up表示节点正常运行,这里只展示了一个节点配置成功的响应,如果三个节点都配置成功并正在运行,响应中`storeId`列表应该包含三个id,并且`stateCountMap`中`Up`、`numOfService`、`numOfNormalService`三个字段应该为3。 +```javascript +{ + "message": "OK", + "data": { + "stores": [ + { + "storeId": 8319292642220586694, + "address": "127.0.0.1:8500", + "raftAddress": "127.0.0.1:8510", + "version": "", + "state": "Up", + "deployPath": "/Users/{your_user_name}/hugegraph/apache-hugegraph-incubating-1.5.0/apache-hugegraph-store-incubating-1.5.0/lib/hg-store-node-1.5.0.jar", + "dataPath": "./storage", + "startTimeStamp": 1754027127969, + "registedTimeStamp": 1754027127969, + "lastHeartBeat": 1754027909444, + "capacity": 494384795648, + "available": 346535829504, + "partitionCount": 0, + "graphSize": 0, + "keyCount": 0, + "leaderCount": 0, + "serviceName": "127.0.0.1:8500-store", + "serviceVersion": "", + "serviceCreatedTimeStamp": 1754027127000, + "partitions": [] + } + ], + "stateCountMap": { + "Up": 1 + }, + "numOfService": 1, + "numOfNormalService": 1 + }, + "status": 0 +} +``` \ No newline at end of file diff --git a/content/en/docs/quickstart/hugegraph/hugegraph-pd.md b/content/en/docs/quickstart/hugegraph/hugegraph-pd.md index 8b9b4893..7a520a6d 100644 --- a/content/en/docs/quickstart/hugegraph/hugegraph-pd.md +++ b/content/en/docs/quickstart/hugegraph/hugegraph-pd.md @@ -136,3 +136,49 @@ curl http://localhost:8620/actuator/health ``` If it returns `{"status":"UP"}`, it indicates that the PD service has been successfully started. + +Additionally, you can verify the status of the Store node by querying the PD API: + +```bash +curl http://localhost:8620/v1/stores +``` + +If the Store is configured successfully, the response of the above interface should contain the status information of the current node. The status "Up" indicates that the node is running normally. Only the response of one node configuration is shown here. If all three nodes are configured successfully and are running, the `storeId` list in the response should contain three IDs, and the `Up`, `numOfService`, and `numOfNormalService` fields in `stateCountMap` should be 3. + +```javascript +{ + "message": "OK", + "data": { + "stores": [ + { + "storeId": 8319292642220586694, + "address": "127.0.0.1:8500", + "raftAddress": "127.0.0.1:8510", + "version": "", + "state": "Up", + "deployPath": "/Users/{your_user_name}/hugegraph/apache-hugegraph-incubating-1.5.0/apache-hugegraph-store-incubating-1.5.0/lib/hg-store-node-1.5.0.jar", + "dataPath": "./storage", + "startTimeStamp": 1754027127969, + "registedTimeStamp": 1754027127969, + "lastHeartBeat": 1754027909444, + "capacity": 494384795648, + "available": 346535829504, + "partitionCount": 0, + "graphSize": 0, + "keyCount": 0, + "leaderCount": 0, + "serviceName": "127.0.0.1:8500-store", + "serviceVersion": "", + "serviceCreatedTimeStamp": 1754027127000, + "partitions": [] + } + ], + "stateCountMap": { + "Up": 1 + }, + "numOfService": 1, + "numOfNormalService": 1 + }, + "status": 0 +} +```