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

batch-system: increase max batch size #9020

Merged
merged 3 commits into from
Nov 19, 2020

Conversation

Little-Wallace
Copy link
Contributor

Signed-off-by: Little-Wallace bupt2013211450@gmail.com

What problem does this PR solve?

Problem Summary:

If user does not enable hibernate-region and there are a lot of region in each TiKV instance(This is a big TiKV cluster), TiKV will process a lot of heartbeat msg. The default value of max-batch-size for batch-system is too small and it will make TiKV must flush after only processing few msg(256 regions). Too frequently flush operations will block raftstore thread too long in system call fsync and make the performance of TiKV worse much than release-3.0, in which the default value of max-batch-size is 1024

Related changes

  • PR to update pingcap/docs/pingcap/docs-cn:
  • PR to update pingcap/tidb-ansible:
  • Need to cherry-pick to the release branch

Check List

Tests

  • Unit test

Release note

  • change the default value of apply-max-batch-size and store-max-batch-size to 1024.

@Little-Wallace Little-Wallace added the sig/raft Component: Raft, RaftStore, etc. label Nov 12, 2020
@Little-Wallace Little-Wallace changed the title increase batch-system size batch-system: increase batch-system size Nov 12, 2020
@Little-Wallace Little-Wallace changed the title batch-system: increase batch-system size batch-system: increase max batch size Nov 12, 2020
@Little-Wallace Little-Wallace added this to the v4.0.9 milestone Nov 12, 2020
@ti-srebot ti-srebot added the status/LGT1 Indicates that a PR has LGTM 1. label Nov 12, 2020
@ti-srebot ti-srebot removed the status/LGT1 Indicates that a PR has LGTM 1. label Nov 12, 2020
@Little-Wallace
Copy link
Contributor Author

/merge

@ti-srebot ti-srebot added the status/can-merge Indicates a PR has been approved by a committer. label Nov 19, 2020
@ti-srebot
Copy link
Contributor

/run-all-tests

@ti-srebot
Copy link
Contributor

@Little-Wallace merge failed.

@Little-Wallace
Copy link
Contributor Author

/merge

@ti-srebot
Copy link
Contributor

/run-all-tests

@ti-srebot ti-srebot merged commit 1cf4b1e into tikv:release-4.0 Nov 19, 2020
solotzg pushed a commit to pingcap/tidb-engine-ext that referenced this pull request Nov 23, 2020
Signed-off-by: Little-Wallace <bupt2013211450@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sig/raft Component: Raft, RaftStore, etc. status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants