pingcap / tidb-dashboard

A Web UI for monitoring, diagnosing and managing the TiDB cluster.
https://docs.pingcap.com/tidb/stable/dashboard-intro
Apache License 2.0
175 stars 133 forks source link

Support displaying multiple partitions on one instance in cluster info #1650

Open mornyx opened 7 months ago

mornyx commented 7 months ago

Feature Request

As a continuation of work on https://github.com/pingcap/tidb-dashboard/issues/1625. We should support showing multiple partitions on an instance. The current data model only supports one single partition (both BE & FE):

type InstanceInfo struct {
    Type           string `json:"type"`
    PartitionPathL string `json:"partition_path_lower"`
}

type Info struct {
    Host        string           `json:"host"`
    // ...
    // Instances in the current host. The key is instance address
    Instances map[string]*InstanceInfo `json:"instances"`
}
mornyx commented 7 months ago

/assign