tidb-operator icon indicating copy to clipboard operation
tidb-operator copied to clipboard

Support unified management of heterogeneous clusters

Open wxiaoke opened this issue 2 years ago • 6 comments

Feature Request

Is your feature request related to a problem? Please describe:

when deploying a heterogeneous cluster, need to upgrade the whole cluster. The rolling update order of components must be manually controlled, like: pd --> TiFlash--> TiKV -->TiDB

https://docs.pingcap.com/tidb-in-kubernetes/stable/deploy-heterogeneous-tidb-cluster#deploy-a-heterogeneous-cluster

Describe the feature you'd like:

If we have a CRD like TiDBCluster Group , to manger the heterogeneous clusters will be fine.

When need to upgrade, just edit the group and the program will automatically control the order.

Describe alternatives you've considered:

Teachability, Documentation, Adoption, Migration Strategy:

wxiaoke avatar Nov 09 '22 07:11 wxiaoke

Why does deploying a heterogeneous cluster trigger an origin cluster update?

mikechengwei avatar Nov 09 '22 07:11 mikechengwei

For example: If I have 3 clusters :cluster1(3pd+6TiKV+6TiFlash+2TiDB),cluster2(6TiKV+2TiFlash+2TiDB), cluster3(3TiDB) cluster1 is the origin cluster , cluster2 and cluster3 are heterogeneous clusters based on cluster1.

when I need to upgrade the whole clusters, need to manually controll the order of components.

wxiaoke avatar Nov 09 '22 07:11 wxiaoke

Good idea.We can create a crd to orchestrate origin clusters and heterogeneous clusters, which can manage existing clusters.

mikechengwei avatar Nov 09 '22 08:11 mikechengwei

Yes

wxiaoke avatar Nov 09 '22 08:11 wxiaoke

However, previously heterogeneous clusters were used to deploy tidb across multiple k8s clusters to form a cluster. Now this design may be limited to a k8s cluster.

mikechengwei avatar Nov 09 '22 08:11 mikechengwei

/assign

mikechengwei avatar Nov 09 '22 14:11 mikechengwei