-
Notifications
You must be signed in to change notification settings - Fork 5.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support distributed processing of DDL reorg phase #37119
Comments
Will it notify the workers after inserting tasks into the table? Or just waiting for the workers to poll the table? I'm implementing this for TTL (in #40705) , maybe we should also consider this in the unified worker framework 🤔 |
We do notify in https://github.com/pingcap/tidb/pull/40542/files#diff-a185df836b8926c4afe351d4def1b56d1e282c65aabe6677c2fa2c54590cc4b2R1063. |
Good. Thanks for pointing out. I think what I actually need (and how TTL's currently implemented) is something like |
Feature Request
Is your feature request related to a problem? Please describe:
TiDB currently supports the parallel processing of DDL jobs on the owner. However, the resources of a single TiDB are limited. Even if the parallel framework is supported, the speed of DDL execution is limited, and the competition for resources will affect the daily operations of TiDB, such as TPS.
Describe the feature you'd like:
At present, the time-consuming and resource-consuming phase is the reorg phase. Considering the problems that can significantly improve DDL performance and TiDB resource utilization, we will implement distributed processing in the DDL reorg phase.
Feature branch: distribute-reorg
Tech design
Development Plan
Step 1(sprint 11-12)
Step 2 (sprint 13)
Step 3(sprint 14)
tidb_ddl_backfill_history
regularly #40298backfillWorkerPool
by adjustingtidb_ddl_reorg_worker_cnt
#40933LitMerge
in theBackfillStateMerging
admin cancel ddl jobs
tidb_ddl_error_count_limit
)Step 4
Backfill processes the Backfill job scheduling policy,
Admin show DDL jobs
supports reorg progress display, get rid of the DDL owner design, etc.Related Issues
TiDBEnableDistributeReorg
#41106ReorgCtx
, otherwise may affect the tmp merge state #42199Unified table structure related issues
like
inRemoveBackfillJob
in job_table.go is incorrect #41579checkBackfillJobCount
#42175Note
Above sprint information is not delievery plan,this indicate dev time schedule,Maybe changed according real project situation
The text was updated successfully, but these errors were encountered: