Closed glorv closed 3 years ago
how about #358 🤔
how about #358 🤔
Even based on #358, we still need to do extra work to allow delay analyze phase until all other tasks are finished. Since in our current design, post-process are always executed together.
BTW, #358 has broken some integration tasks that are hard to fix, I have tried another way to pipeline the restore work based on current logic. See: https://github.com/pingcap/tidb-lightning/commit/30fe2797fdddc9eeb01203e17ec9836053492ac9 (not fully finished)
Okay.
What problem does this PR solve?
Add a new config
analyze-at-last
to allow run all table analyze tasks after all tables are finished. This is useful if TiKV instance's cpu is not rich (e.g. in standard dbaas env, TiKV is deployed with 8core cpu), thus the analyze operation will have significant impacts on SST ingest opeartions.What is changed and how it works?
Check List
Tests
Side effects
Related changes