Skip to content
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

store/tikv/gc_worker: Add config to specify gc concurrency manually #10561

Merged
merged 3 commits into from
Jun 3, 2019

Conversation

MyonKeminta
Copy link
Contributor

Signed-off-by: MyonKeminta MyonKeminta@users.noreply.github.com

What problem does this PR solve?

Now in master branch TiDB always uses number of up stores as the gc concurrency (now gc concurrency is used for ResolveLocks and will be used for notifying delete range too). However it's useful to make it still configurable. This PR makes it possible to fallback to use configured concurrency, rather than use number of up stores directly.

What is changed and how it works?

This PR adds a new config tikv_gc_auto_concurrency to mysql.tidb. It's defalt value is true. When it's true, tikv_gc_concurrency will be ignored; and when it's false, tikv_gc_concurrency's value will be used as the concurrency.

Check List

Tests

  • Unit test

Related changes

  • Need to update the documentation

Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
@MyonKeminta MyonKeminta changed the title store/tikv: Add config to disable auto concurrency store/tikv/gc_worker: Add config to disable auto concurrency May 21, 2019
@MyonKeminta MyonKeminta changed the title store/tikv/gc_worker: Add config to disable auto concurrency store/tikv/gc_worker: Add config to specify gc concurrency manually May 21, 2019
@codecov
Copy link

codecov bot commented May 21, 2019

Codecov Report

Merging #10561 into master will decrease coverage by 0.0059%.
The diff coverage is 43.9024%.

@@               Coverage Diff               @@
##             master     #10561       +/-   ##
===============================================
- Coverage   78.3433%   78.3373%   -0.006%     
===============================================
  Files           414        414               
  Lines         87668      87704       +36     
===============================================
+ Hits          68682      68705       +23     
- Misses        13853      13856        +3     
- Partials       5133       5143       +10

@MyonKeminta
Copy link
Contributor Author

@zhangjinpeng1987 @disksing PTAL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants