-
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
tikv-control: make a parameter in right places #9549
Merged
Merged
Changes from 2 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
b41169f
tikv-control: make a parameter in right places
Oreoxmt a670d19
remove -d option
Oreoxmt 8ce2f92
add -db option
Oreoxmt e43af46
Merge branch 'master' into translate/docs-cn-9886
Oreoxmt a9821ba
update
Oreoxmt 144f6b4
Apply suggestions from code review
Oreoxmt 7f71ffb
Apply suggestions from code review
Oreoxmt 986bd14
Apply suggestions from code review
Oreoxmt File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 refresh the whole description, please update
Compact data of each TiKV manually
Use the
compact
command to manually compact data of each TiKV.Use the
--from
and--to
options to sepecify the compact range in the form of escaped raw key. If not set, the whole range will be compacted.Use the
--region
option to compact range of a specific region. If set,--from
and--to
will be ignored.Use the
--db
option to specify the RocksDB that performs compaction. The optional values arekv
andraft
.Use the
--threads
option allows you to specify the concurrency for the TiKV compaction and its default value is8
. Generally, a higher concurrency comes with a faster compaction speed, which might yet affect the service. You need to choose an appropriate concurrency count based on your scenario.Use the
--bottommost
option to include or exclude the bottommost files when TiKV performs compaction. The value options aredefault
,skip
, andforce
. The default value isdefault
.default
means that the bottommost files are included only when the Compaction Filter feature is enabled.skip
means that the bottommost files are excluded when TiKV performs compaction.force
means that the bottommost files are always included when TiKV performs compaction.For local mode
{{< copyable "shell-regular" >}}
$ tikv-ctl --data-dir /path/to/tikv compact --db kv success!
{{< copyable "shell-regular" >}}
$ tikv-ctl --host ip:port compact --db kv success!