mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-15 00:09:00 +01:00
admin: vector servers on the dashboard
A Vector servers count in the Cluster card and a Vector Servers table after S3 Servers, from the engines the dashboard already discovers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK
This commit is contained in:
1 parent
a576398662
commit
405efc2fbb
4 files changed
+424
-231
No files matched your search
@@ -18,6 +18,8 @@ import (
|
||||
|
||||
type VectorNode struct {
|
||||
Address string `json:"address"`
|
||||
// Kind is "engine" for a weed-vector engine.
|
||||
Kind string `json:"kind"`
|
||||
Version string `json:"version"`
|
||||
Status string `json:"status"`
|
||||
}
|
||||
@@ -45,7 +47,7 @@ func (s *AdminServer) getVectorNodesStatus(ctx context.Context) VectorOperations
|
||||
err = callErr
|
||||
if err == nil {
|
||||
for _, node := range response.ClusterNodes {
|
||||
data.Engines = append(data.Engines, VectorNode{Address: node.Address, Version: node.Version, Status: "Registered"})
|
||||
data.Engines = append(data.Engines, VectorNode{Address: node.Address, Kind: "engine", Version: node.Version, Status: "Registered"})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user