diff options
| author | chrislu <chris.lu@gmail.com> | 2025-07-02 23:57:36 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2025-07-02 23:57:36 -0700 |
| commit | 2cfe079a1fac21d5d654d0e6ed2f1996d5b89209 (patch) | |
| tree | 6f888994044d21813981e1f3f871e0d43544bce0 /weed/admin/dash/admin_data.go | |
| parent | e89941f3904b7b3bdf9e7b19a91ade68b876ce85 (diff) | |
| download | seaweedfs-2cfe079a1fac21d5d654d0e6ed2f1996d5b89209.tar.xz seaweedfs-2cfe079a1fac21d5d654d0e6ed2f1996d5b89209.zip | |
weed admin: remove system health status
Diffstat (limited to 'weed/admin/dash/admin_data.go')
| -rw-r--r-- | weed/admin/dash/admin_data.go | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/weed/admin/dash/admin_data.go b/weed/admin/dash/admin_data.go index a9dbc0896..ef94169c2 100644 --- a/weed/admin/dash/admin_data.go +++ b/weed/admin/dash/admin_data.go @@ -21,7 +21,6 @@ type AdminData struct { FilerNodes []FilerNode `json:"filer_nodes"` DataCenters []DataCenter `json:"datacenters"` LastUpdated time.Time `json:"last_updated"` - SystemHealth string `json:"system_health"` } // Object Store Users management structures @@ -107,7 +106,6 @@ func (s *AdminServer) GetAdminData(username string) (AdminData, error) { FilerNodes: filerNodes, DataCenters: topology.DataCenters, LastUpdated: topology.UpdatedAt, - SystemHealth: s.determineSystemHealth(topology, masterNodes), } return adminData, nil @@ -202,23 +200,3 @@ func (s *AdminServer) getFilerNodesStatus() []FilerNode { return filerNodes } - -// determineSystemHealth provides overall system health assessment -func (s *AdminServer) determineSystemHealth(topology *ClusterTopology, masters []MasterNode) string { - // Simple health calculation based on available components - totalComponents := len(masters) + len(topology.VolumeServers) - - if totalComponents == 0 { - return "unknown" - } - - // Consider all components as active since we're removing status tracking - // In the future, this could be enhanced with actual health checks - if totalComponents >= 3 { - return "excellent" - } else if totalComponents >= 2 { - return "good" - } else { - return "fair" - } -} |
