-
Notifications
You must be signed in to change notification settings - Fork 657
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
Update commands and tool info about key-type
#7305
Update commands and tool info about key-type
#7305
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. |
key-type
key-type
- Set `key-type` to `"txn"` or `"raw"`. You can modify the parameter dynamically. | ||
- Or keep `key-type` as `table` and set `enable-cross-table-merge` to `true`. You can modify the parameter dynamically. | ||
- PD: You can use PD Control to selectively set the following parameters according to the cluster situation. | ||
- Suppose that the cluster has no TiDB instance, and the value of [`key-type`](/pd-control.md#config-show--set-option-value--placement-rules) is set to `raw` or `txn`. In this case, PD can merge Regions across tables, regardless of what value of `enable-cross-table-merge setting` is set to. You can modify the `key-type` parameter dynamically. |
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.
- Suppose that the cluster has no TiDB instance, and the value of [`key-type`](/pd-control.md#config-show--set-option-value--placement-rules) is set to `raw` or `txn`. In this case, PD can merge Regions across tables, regardless of what value of `enable-cross-table-merge setting` is set to. You can modify the `key-type` parameter dynamically. | |
- Suppose that your cluster has no TiDB instance, and the value of [`key-type`](/pd-control.md#config-show--set-option-value--placement-rules) is set to `raw` or `txn`. In this case, PD can merge Regions across tables, regardless of the value of `enable-cross-table-merge setting`. You can modify the `key-type` parameter dynamically. |
config set key-type txn | ||
``` | ||
|
||
- Suppose that the cluster has a TiDB instance, and the value of `key-type` is set to "table". In this case, PD can merge Regions across tables only if the value of `enable-cross-table-merge` is set to `true`. You can modify the `key-type` parameter dynamically. |
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.
- Suppose that the cluster has a TiDB instance, and the value of `key-type` is set to "table". In this case, PD can merge Regions across tables only if the value of `enable-cross-table-merge` is set to `true`. You can modify the `key-type` parameter dynamically. | |
- Suppose that your cluster has a TiDB instance, and the value of `key-type` is set to `table`. In this case, PD can merge Regions across tables only if the value of `enable-cross-table-merge` is set to `true`. You can modify the `key-type` parameter dynamically. |
Co-authored-by: shichun-0415 <89768198+shichun-0415@users.noreply.github.com>
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 |
@en-jin19: 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 ti-community-infra/tichi repository. |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: ed8fb48
|
In response to a cherrypick label: new pull request created: #7853. |
In response to a cherrypick label: new pull request created: #7854. |
In response to a cherrypick label: new pull request created: #7855. |
What is changed, added or deleted? (Required)
Update commands and tool info about
key-type
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)?
key-type
docs-cn#7758Do your changes match any of the following descriptions?