-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
ddl: add ddl_reorg_batch_size variable to control ddl worker batch size. #8365
Conversation
…hen do back fill.
9407a3b
to
a239b28
Compare
/run-all-tests |
/run-sqllogic-test |
5a1e034
to
8d307e9
Compare
tidb pprof svg.tar.gz |
@crazycs520 Good job. |
You need to append |
I think 4096 maybe the proper default batch size. But we should find out a way to handle too large transaction error, and then reduce the batchSize automatically. Otherwise the add index will block by the error. |
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.
LGTM
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.
Please add the information about the test cluster
b7c5607
to
1c52758
Compare
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.
LGTM
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.
LGTM
/run-all-tests |
/run-integration-ddl-test |
/run-integration-ddl-test |
1 similar comment
/run-integration-ddl-test |
/run-integration-ddl-test |
…ze and enlarge default batch size. (pingcap#8365)
…ze and enlarge default batch size. (pingcap#8365)
…ze and enlarge default batch size. (pingcap#8365)
What problem does this PR solve?
here is a test:
environment: 1 machine, 16G, disk is nvme. both tidb,tikv,pd in this machine.
test add index with different batch size
test with transaction conflict
80W rows in table, 1 session send add index request, 20 sessions send update request, table schema is:
result
Maybe next step, I wish to make tidb can auto tune the batch size according to whether there is a transaction write conflict, if no conflict, increase the batch, other wise reduce the batch size.
What is changed and how it works?
Add a session variable.
Check List
Tests
Code changes
Side effects
Related changes
This change is