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

increase large transaction preSplitSizeThreashold #1059

Merged
merged 1 commit into from
Nov 15, 2023

Conversation

coocood
Copy link

@coocood coocood commented Nov 15, 2023

cloud-storage-engine has larger region size 512MB, we don't want to split regions into 32MB size on large transaction write.

cloud-storage-engine has larger region size, we don't want to split regions into 32MB size on large transaction write.

Signed-off-by: Evan Zhou <[email protected]>
@@ -786,8 +786,8 @@ func txnLockTTL(startTime time.Time, txnSize int) uint64 {
return lockTTL + uint64(elapsed)
}

var preSplitDetectThreshold uint32 = 100000
var preSplitSizeThreshold uint32 = 32 << 20
var preSplitDetectThreshold uint32 = 1000000
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about making these optional and changing the default value in the tidb-cse?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That would be much more work to do.

@iosmanthus iosmanthus merged commit e1d4f84 into cse-region-client Nov 15, 2023
9 of 10 checks passed
@iosmanthus iosmanthus deleted the large-txn-pre-split-size branch November 15, 2023 07:52
coocood added a commit that referenced this pull request Nov 15, 2023
cloud-storage-engine has larger region size, we don't want to split regions into 32MB size on large transaction write.

Signed-off-by: Evan Zhou <[email protected]>
iosmanthus pushed a commit to iosmanthus/client-go that referenced this pull request Dec 21, 2023
cloud-storage-engine has larger region size, we don't want to split regions into 32MB size on large transaction write.

Signed-off-by: Evan Zhou <[email protected]>
zeminzhou pushed a commit to zeminzhou/client-go that referenced this pull request Feb 28, 2024
cloud-storage-engine has larger region size, we don't want to split regions into 32MB size on large transaction write.

Signed-off-by: Evan Zhou <[email protected]>
zeminzhou pushed a commit to zeminzhou/client-go that referenced this pull request Feb 28, 2024
cloud-storage-engine has larger region size, we don't want to split regions into 32MB size on large transaction write.

Signed-off-by: Evan Zhou <[email protected]>
zeminzhou pushed a commit to zeminzhou/client-go that referenced this pull request Feb 28, 2024
cloud-storage-engine has larger region size, we don't want to split regions into 32MB size on large transaction write.

Signed-off-by: Evan Zhou <[email protected]>
zeminzhou pushed a commit to zeminzhou/client-go that referenced this pull request Feb 28, 2024
cloud-storage-engine has larger region size, we don't want to split regions into 32MB size on large transaction write.

Signed-off-by: Evan Zhou <[email protected]>
Signed-off-by: zzm <[email protected]>
zeminzhou pushed a commit to zeminzhou/client-go that referenced this pull request Mar 13, 2024
cloud-storage-engine has larger region size, we don't want to split regions into 32MB size on large transaction write.

Signed-off-by: Evan Zhou <[email protected]>
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