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 scheduler visibility and management #766

Open kolbe opened 3 years ago

kolbe commented 3 years ago

Feature Request

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

It's often difficult to diagnose issues with schedulers and maintain their activation and configuration. This requires the use of pd-ctl, which is not very convenient especially when running in Kubernetes.

Describe the feature you'd like:

I'd like it to be possible to see which schedulers (https://docs.pingcap.com/tidb/stable/glossary#scheduler, https://docs.pingcap.com/tidb/stable/pd-control#scheduler-show--add--remove--pause--resume--config) are enabled in the Dashboard and to turn them on/off and change their configurations using a simple web UI.

Describe alternatives you've considered:

Teachability, Documentation, Adoption, Migration Strategy:

kennytm commented 3 years ago

As of tikv/pd#3055 we can list enabled and paused schedulers. However there is no API to list all disabled schedulers, which means we gotta hard-code the built-in scheduler names.

kolbe commented 3 years ago

Can't we simply add an API to list all available schedulers?

breezewish commented 3 years ago

@HunDunDM Can we have an API for all schedulers?

HunDunDM commented 3 years ago

Some schedulers have been deprecated, and some are for testing. I think we need to discuss.