-
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
Lightning : make pebbleDB block size configurable #49514
Conversation
Hi @mittalrishabh. Thanks for your PR. I'm waiting for a pingcap member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions 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 kubernetes/test-infra repository. |
Hi @mittalrishabh. Thanks for your PR. PRs from untrusted users cannot be marked as trusted with I understand the commands that are listed here. Instructions 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 kubernetes/test-infra repository. |
/ok-to-test |
/cc @lyzx2001 |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #49514 +/- ##
================================================
- Coverage 72.0620% 68.8487% -3.2133%
================================================
Files 1438 1440 +2
Lines 345762 407290 +61528
================================================
+ Hits 249163 280414 +31251
- Misses 76461 107965 +31504
+ Partials 20138 18911 -1227
Flags with carried forward coverage won't be shown. Click here to find out more.
|
/retest |
This comment was marked as resolved.
This comment was marked as resolved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also need to add the code to check whether BlockSize
is valid before using it
This comment was marked as resolved.
This comment was marked as resolved.
/cc @lance6716 |
/test pull-lightning-integration-test |
@lance6716: The specified target(s) for
Use In response to this:
Instructions 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 kubernetes/test-infra repository. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rest lgtm
br/pkg/lightning/config/config.go
Outdated
@@ -1457,6 +1459,7 @@ func NewConfig() *Config { | |||
DiskQuota: ByteSize(math.MaxInt64), | |||
DuplicateResolution: DupeResAlgNone, | |||
PausePDSchedulerScope: PausePDSchedulerScopeTable, | |||
BlockSize: 8192, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In order to keep compatibility, we should use the old effective value 16 * 1024, as in newSSTWriter
from backend/local/engine.go line 1377
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lance6716, tangenta, ywqzzy The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/unhold |
/test pull-lightning-integration-test |
@lance6716: The specified target(s) for
Use In response to this:
Instructions 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 kubernetes/test-infra repository. |
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
In response to a cherrypick label: new pull request created to branch |
What problem does this PR solve?
Issue Number: close #45037
Problem Summary:
We have seen that lightning is bounded by EBS IOPS which is 16k and is taking more than 3 hours to transfer 7 TB of data.
What changed and how does it work?
I have made the block size configurable through lightning config. We are setting it 128k internally.
Check List
Tests
Its running in production with 128k size. However, i haven't tested the master code. I am relying on pingcap CI to test it.
Side effects
I haven't seen much increase in memory and CPU after increasing the block size.
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.