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
tidb-configuration-file: add more notes to txn-entry-size-limit #10629
tidb-configuration-file: add more notes to txn-entry-size-limit #10629
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
Note that the actual limit might be slightly less. Instead of 6MiB (default config) exactly it is 33 bytes less for the defaults. I don't think this is a problem.
|
tidb-configuration-file.md
Outdated
- The default `max_allowed_packet` is 67108864 (64 MiB), which may lead to truncation with rows that are bigger. | ||
- The default `txn-total-size-limit` is 100 MiB, which you need to increase if you increase `txn-entry-size-limit` to be over 100 MiB. |
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.
What does "rows that are bigger" mean? Does it mean rows bigger than txn-entry-size-limit
?
- The default `max_allowed_packet` is 67108864 (64 MiB), which may lead to truncation with rows that are bigger. | |
- The default `txn-total-size-limit` is 100 MiB, which you need to increase if you increase `txn-entry-size-limit` to be over 100 MiB. | |
- Because the default value of [`max_allowed_packet`](/system-variables.md#max_allowed_packet) (the maximum size of a packet for the MySQL protocol) is 67108864 (64 MiB), which might lead to truncation with rows that are bigger. | |
- The default value of [`txn-total-size-limit`](#txn-total-size-limit) (the size limit of a single transaction in TiDB) is 100 MiB. If you increase the `txn-entry-size-limit` value to be over 100 MiB, you need to increase the `txn-total-size-limit` value accordingly. |
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.
If a column is larger than max_allowed_packet
it gets truncated. With a strict SQL mode it will probably give an error instead of truncating the value, but I didn't test that.
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
@TomShawn PTAL |
1 similar comment
@TomShawn PTAL |
@@ -362,6 +362,8 @@ Configuration items related to performance. | |||
- Default value: `6291456` (in bytes) |
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 L361, do we need to mention this configuration item also controls the size limit of a single column?
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.
I don't think that's needed as this should be implicit as columns can't be bigger than the row.
The
However the link seems fine to me. |
/rebase |
…contains binary types
Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com>
Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com>
00d7707
to
c4d9a45
Compare
Anchor fixed. If @qiancai has no further comment, let's merge this PR. |
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
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 64542ef
|
In response to a cherrypick label: new pull request created: #11014. |
In response to a cherrypick label: new pull request created: #11015. |
What is changed, added or deleted? (Required)
Growing the
txn-entry-size-limit
to the maximum size needs adjustments in other settings as well.When
txn-entry-size-limit
is too small:When
raft-entry-max-size
is too small:When
max_allowed_packet
is too small:When
txn-total-size-limit
is too small:Tested with:
tikv.toml
:tidb.toml
:And
SET GLOBAL max_allowed_packet=130*1024*1024
(and then reconnect)Which TiDB version(s) do your changes apply to? (Required)
Tips for choosing the affected version(s):
By default, CHOOSE MASTER ONLY so your changes will be applied to the next TiDB major or minor releases. If your PR involves a product feature behavior change or a compatibility change, CHOOSE THE AFFECTED RELEASE BRANCH(ES) AND MASTER.
For details, see tips for choosing the affected versions.
What is the related PR or file link(s)?
Do your changes match any of the following descriptions?