-
Notifications
You must be signed in to change notification settings - Fork 678
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
Log redact on TiFlash #4994
Merged
Merged
Log redact on TiFlash #4994
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
9a6e565
Update log-redaction.md
Joyinqin d7caeb2
Update log-redaction.md
Joyinqin 3250330
Update log-redaction.md
Joyinqin 314fcd3
Merge branch 'master' into tiflash-redact-log
Joyinqin be84bc5
Update log-redaction.md
Joyinqin 9ae5c6d
Merge branch 'tiflash-redact-log' of https://github.com/Joyinqin/docs…
Joyinqin 5e5ae68
fix the link
Joyinqin 3fa6de3
Apply suggestions from code review
Joyinqin 5cc5eda
add tiflash learner config
TomShawn 834a4e4
add version
TomShawn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -153,10 +153,9 @@ delta_index_cache_size = 0 | |
|
||
## Security settings take effect starting from v4.0.5. | ||
[security] | ||
## This configuration item enables or disables log redaction. If the configuration value | ||
## New in v5.0.0-rc. This configuration item enables or disables log redaction. If the configuration value | ||
## is set to `true`, all user data in the log will be replaced by `?`. | ||
## Note that you also need to set `security.redact-info-log` for tiflash-learner's logging | ||
## in tiflash-learner.toml | ||
## Note that you also need to set `security.redact-info-log` for tiflash-learner's logging in tiflash-learner.toml. | ||
# redact_info_log = false | ||
|
||
## Path of the file that contains a list of trusted SSL CAs. If set, the following settings | ||
|
@@ -175,22 +174,27 @@ delta_index_cache_size = 0 | |
engine-addr = The external access address of the TiFlash coprocessor service. | ||
[raftstore] | ||
## Specifies the number of threads that handle snapshots. | ||
## The default number is 2. | ||
## The default number is 2. | ||
## If you set it to 0, the multi-thread optimization is disabled. | ||
snap-handle-pool-size = 2 | ||
snap-handle-pool-size = 2 | ||
|
||
## Specifies the shortest interval at which Raft store persists WAL. | ||
## You can properly increase the latency to reduce IOPS usage. | ||
## The default value is "4ms". | ||
## If you set it to 0ms, the optimization is disabled. | ||
store-batch-retry-recv-timeout = "4ms" | ||
[security] | ||
## New in v4.0.10. This configuration item enables or disables log redaction. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. mark There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. changed in #5000. |
||
## If the configuration value is set to true, | ||
## all user data in the log will be replaced by ?. The default value is false. | ||
redact-info-log = false | ||
``` | ||
|
||
In addition to the items above, other parameters are the same with those of TiKV. Note that the configuration items in `tiflash.toml [flash.proxy]` will override the overlapping parameters in `tiflash-learner.toml`; The `label` whose key is `engine` is reserved and cannot be configured manually. | ||
|
||
### Multi-disk deployment | ||
|
||
TiFlash supports multi-disk deployment. If there are multiple disks in your TiFlash node, you can make full use of those disks by configuring the parameters described in the following sections. For TiFlash's configuration template to be used for TiUP, see [The complex template for the TiFlash topology](https://github.com/pingcap/docs/blob/master/config-templates/complex-tiflash.yaml). | ||
TiFlash supports multi-disk deployment. If there are multiple disks in your TiFlash node, you can make full use of those disks by configuring the parameters described in the following sections. For TiFlash's configuration template to be used for TiUP, see [The complex template for the TiFlash topology](https://github.com/pingcap/docs/blob/master/config-templates/complex-tiflash.yaml). | ||
|
||
#### Multi-disk deployment with TiDB version earlier than v4.0.9 | ||
|
||
|
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.
Make these two aligned? Make it both "New in v5.0.0-rc" or "New in v4.0.10"