[hotfix-to-7.5.6] raftstore: remove stale ranges by DeleteByKeys rather than ingesting. (#18040)#18519
Conversation
…tikv#18040) Signed-off-by: lucasliang <nkcs_lykx@hotmail.com>
[LGTM Timeline notifier]Timeline:
|
Signed-off-by: lucasliang <nkcs_lykx@hotmail.com>
|
/merge |
|
@LykxSassinator: We have migrated to builtin 👉 Please use
DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: LykxSassinator, overvenus The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
6a80753
into
tikv:add-index-ingest-allow-write
Rollup of following sst ingestion optimizations * raftstore: directly write kvs rather than ingestion when merging small regions. (#17408) (#18518) * raftstore: remove stale ranges by DeleteByKeys rather than ingesting. (#18040) (#18519) * raftstore: support rocksdb writes during ingestion #18096 (#18520) * storage: support online config for flow-control module (#17396). (#18523) * sst_importer: allow write during ingesting sst (#18514) (#18522) Signed-off-by: lucasliang <nkcs_lykx@hotmail.com> Signed-off-by: Neil Shen <overvenus@gmail.com> Co-authored-by: lucasliang <nkcs_lykx@hotmail.com>
This is a manual cherry-pick of #18040
What is changed and how it works?
Issue Number: Close #18107, Ref #18042
This PR mainly contains the following parts for optimization on scaling, used to mitigate the impacts, introduced by unnecessary ingesting sst files:
What's Changed:
Related changes
pingcap/docs/pingcap/docs-cn:Check List
Tests
Taking the
grpc messages durationin TiKV metrics panel as examples, positive performance feedbacks on reducing the long-tail latency can be reviewed from the following comparison results:grpc messages durationMeanwhile, the following E2E long-tail reduction also proves that this PR makes positive improvements effects:
Side effects
Release note