package app import ( "fmt" "github.com/seaweedfs/seaweedfs/weed/admin/dash" ) templ ClusterVolumeServers(data dash.ClusterVolumeServersData) {
Address | Data Center | Rack | Volumes | Max Volumes | EC Shards | Capacity | Usage | Actions |
---|---|---|---|---|---|---|---|---|
{host.Address} | {host.DataCenter} | {host.Rack} |
|
{fmt.Sprintf("%d", host.MaxVolumes)} |
if host.EcShards > 0 {
{fmt.Sprintf("%d", host.EcShards)}
shards
if host.EcVolumes > 0 {
{fmt.Sprintf("%d EC volumes", host.EcVolumes)}
}
} else {
-
}
|
{formatBytes(host.DiskCapacity)} |
|
No volume servers are currently available in the cluster.