pingcap / tidb-operator

TiDB operator creates and manages TiDB clusters running in Kubernetes.
https://docs.pingcap.com/tidb-in-kubernetes/
Apache License 2.0
1.22k stars 489 forks source link

Sync tidbautoscaler with PD API #3159

Open DanielZhangQD opened 4 years ago

DanielZhangQD commented 4 years ago

Feature Request

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

Sync tidbautoscaler with PD API, please check detail in https://github.com/pingcap/tidb-operator/blob/f73551ea6c7cc979f729f03f7076b2ff7d181398/docs/design-proposals/2020-08-21-auto-scaling-with-pdapi.md#auto-scaling

Describe the feature you'd like:

Describe alternatives you've considered:

Teachability, Documentation, Adoption, Migration Strategy:

howardlau1999 commented 3 years ago

Sync TidbMonitor clusters reference in a separate logic after clusters are created and deleted

howardlau1999 commented 3 years ago

Move resources definition in the spec to tikv.spec and tidb.spec

DanielZhangQD commented 3 years ago

The sync logic would be like:

sync
  synctidb
    syncexternal
    syncpd
  synctikv
    syncexternal
    sycntikv
  syncMonitor
howardlau1999 commented 3 years ago

Check autoscaling interval according to status for each group