Page Deploiement: generateur de docker-compose et garage.toml (1 a 9 noeuds, rejoindre un cluster, etapes, CLI) + tests
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ca1330434e
commit
ea2058b6c1
9 files changed
+686
-2
No files matched your search
@@ -148,6 +148,8 @@ func handle(token string) http.HandlerFunc {
|
||||
j(w, 200, map[string]any{"layoutVersion": version, "nodes": []any{map[string]any{
|
||||
"id": nodeID, "role": role, "addr": "172.18.0.2:3901", "hostname": "garage", "isUp": true, "lastSeenSecsAgo": nil, "draining": false,
|
||||
"dataPartition": map[string]any{"available": int64(412e9), "total": int64(500e9)}, "metadataPartition": map[string]any{"available": int64(40e9), "total": int64(50e9)}, "garageVersion": "v2.3.0"}}})
|
||||
case "GetNodeInfo":
|
||||
j(w, 200, map[string]any{"success": map[string]any{nodeID: map[string]any{"nodeId": nodeID, "garageVersion": "v2.3.0", "rustVersion": "1.80", "dbEngine": "lmdb", "addr": "172.18.0.2:3901"}}, "error": map[string]any{}})
|
||||
case "GetClusterStatistics":
|
||||
j(w, 200, map[string]any{"freeform": "Storage nodes:\n ID Hostname Zone Capacity Part. DataAvail MetaAvail\n 563e1ac8 garage dc1 500.0 GB 256 412.0 GB 40.0 GB"})
|
||||
case "GetClusterLayout":
|
||||
|
||||
Reference in new issue
Block a user