@@ -471,17 +471,34 @@ curl http://localhost:8620/actuator/health
471471
472472` ` ` bash
473473# Check cluster members
474- curl http://192.168.1.10:8620/pd/ v1/members
474+ curl http://192.168.1.10:8620/v1/members
475475
476476# Expected output:
477- # {
478- # "members": [
479- # {"id": "1", "name": "pd-1", "address": "192.168.1.10:8686"},
480- # {"id": "2", "name": "pd-2", "address": "192.168.1.11:8686"},
481- # {"id": "3", "name": "pd-3", "address": "192.168.1.12:8686"}
482- # ],
483- # "leader": "1"
484- # }
477+ {
478+ "message":"OK",
479+ "data":{
480+ "pdLeader":null,
481+ "pdList":[{
482+ "raftUrl":"127.0.0.1:8610",
483+ "grpcUrl":"",
484+ "restUrl":"",
485+ "state":"Offline",
486+ "dataPath":"",
487+ "role":"Leader",
488+ "replicateState":"",
489+ "serviceName":"-PD",
490+ "serviceVersion":"1.7.0",
491+ "startTimeStamp":1761818483830
492+ }],
493+ "stateCountMap":{
494+ "Offline":1
495+ },
496+ "numOfService":1,
497+ "state":"Cluster_OK",
498+ "numOfNormalService":0
499+ },
500+ "status":0
501+ }
485502` ` `
486503
487504---
@@ -560,23 +577,45 @@ bin/start-hugegraph-store.sh
560577tail -f logs/hugegraph-store.log
561578
562579# Verify Store is running
563- curl http://localhost:8520/actuator /health
580+ curl http://localhost:8520/v1 /health
564581` ` `
565582
566583**Verify Store registration with PD**:
567584
568585` ` ` bash
569586# Query PD for registered stores
570- curl http://192.168.1.10:8620/pd/ v1/stores
587+ curl http://192.168.1.10:8620/v1/stores
571588
572589# Expected output:
573- # {
574- # "stores": [
575- # {"id": "1", "address": "192.168.1.20:8500", "state": "Online"},
576- # {"id": "2", "address": "192.168.1.21:8500", "state": "Online"},
577- # {"id": "3", "address": "192.168.1.22:8500", "state": "Online"}
578- # ]
579- # }
590+ {
591+ "message":"OK",
592+ "data":{
593+ "stores":[{
594+ "storeId":"1783423547167821026",
595+ "address":"192.168.1.10:8500",
596+ "raftAddress":"192.168.1.10:8510",
597+ "version":"","state":"Up",
598+ "deployPath":"/Users/user/incubator-hugegraph/hugegraph-store/hg-store-node/target/classes/",
599+ "dataPath":"./storage",
600+ "startTimeStamp":1761818547335,
601+ "registedTimeStamp":1761818547335,
602+ "lastHeartBeat":1761818727631,
603+ "capacity":245107195904,
604+ "available":118497292288,
605+ "partitionCount":0,
606+ "graphSize":0,
607+ "keyCount":0,
608+ "leaderCount":0,
609+ "serviceName":"192.168.1.10:8500-store",
610+ "serviceVersion":"",
611+ "serviceCreatedTimeStamp":1761818547000,
612+ "partitions":[]}],
613+ "stateCountMap":{"Up":1},
614+ "numOfService":1,
615+ "numOfNormalService":1
616+ },
617+ "status":0
618+ }
580619` ` `
581620
582621---
@@ -904,47 +943,45 @@ kubectl port-forward svc/hugegraph-store 8500:8500 -n hugegraph
904943
905944` ` ` bash
906945# PD health
907- curl http://192.168.1.10:8620/actuator /health
946+ curl http://192.168.1.10:8620/v1 /health
908947
909948# Store health
910- curl http://192.168.1.20:8520/actuator/health
911-
912- # Server health
913- curl http://192.168.1.30:8080/actuator/health
949+ curl http://192.168.1.20:8520/v1/health
914950` ` `
915951
916952# ## Cluster Status
917953
918954` ` ` bash
919955# PD cluster members
920- curl http://192.168.1.10:8620/pd/ v1/members
956+ curl http://192.168.1.10:8620/v1/members
921957
922958# Registered stores
923- curl http://192.168.1.10:8620/pd/ v1/stores
959+ curl http://192.168.1.10:8620/v1/stores
924960
925961# Partitions
926- curl http://192.168.1.10:8620/pd/ v1/partitions
962+ curl http://192.168.1.10:8620/v1/partitions
927963
928964# Graph list
929- curl http://192.168.1.30:8080 /graphs
965+ curl http://192.168.1.10:8620/v1 /graphs
930966` ` `
931967
932968# ## Basic Operations Test
933969
934970` ` ` bash
935971# Create vertex via Server
936- curl -X POST http://192.168.1.30:8080/graphs/hugegraph/graph/vertices \
937- -H "Content-Type: application/json" \
938- -d '{
939- "label": "person",
940- "properties": {
941- "name": "Alice",
942- "age": 30
943- }
944- }'
945-
946- # Query vertex
947- curl http://192.168.1.30:8080/graphs/hugegraph/graph/vertices
972+ curl -X POST "http://192.168.1.30:8080/graphspaces/{graphspace_name}/graphs/{graph_name}/graph/vertices" \
973+ -H "Content-Type: application/json" \
974+ -d '{
975+ "label": "person",
976+ "properties": {
977+ "name": "marko",
978+ "age": 29
979+ }
980+ }'
981+
982+ # Query vertex (using -u if auth is enabled)
983+ curl -u admin:admin \
984+ -X GET "http://localhost:8080/graphspaces/{graphspace_name}/graphs/graphspace_name}/graph/vertices/{graph_id}
948985` ` `
949986
950987# ## Performance Baseline Test
0 commit comments