Skip to content

[Feature] Users will not be affected at all when auto-scaling #7

@renajin

Description

@renajin

Feature Request

Is your feature request related to a problem? Please describe:
When the middleware decides to scale-in, there are still some running sqls at this time, if the tidb node currently running sql is deleted, connection interrupted is a terrible thing.

Describe the feature you'd like:
Ensure that these processes are not affected.

Describe alternatives you've considered:
We use admission webhook to solve this problem, scale module decide which nodes will be deleted and inform nodes' indexs to statefulset, the validating admission webhook now can intercept this request and distinguish whether it is tidb or other resources like tikv,pd, and then, send request of tidb to proxy with deletion information, The proxy will forward traffic of those nodes to other tidbs and ensure that sql being executed ends smoothly, when there are no more unprocessed tasks on these nodes, the proxy will notice webhook to release that deletion request, Finally statefulset will safely delete those nodes

Teachability, Documentation, Adoption, Migration Strategy:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions