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 493 forks source link

Graceful upgrade of TiDB #3318

Open DanielZhangQD opened 3 years ago

DanielZhangQD commented 3 years ago

Feature Request

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

https://docs.pingcap.com/tidb-in-kubernetes/dev/access-tidb#gracefully-upgrade-the-tidb-cluster introduces the prestop hook for TiDB, however, we have to make sure that TiDB may be gracefully upgraded (the long connections will be down but no new connections will be rejected):

Describe the feature you'd like:

Describe alternatives you've considered:

Teachability, Documentation, Adoption, Migration Strategy:

DanielZhangQD commented 3 years ago

Per the issue, https://github.com/kubernetes/kubernetes/issues/85643, for public cloud deploy, LB + Local externalTrafficPolicy cannot gracefully upgrade TiDB.