Skip to content

Commit

Permalink
Add log redaction to learner toml (#8202) (#8269)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot authored Jan 28, 2022
1 parent bc63b86 commit ec84bbd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tiflash/tiflash-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ delta_index_cache_size = 0

## 安全相关配置,从 v4.0.5 开始生效
[security]
## 从 v5.0 引入,控制是否开启日志脱敏
## 若开启该选项,日志中的用户数据会以 `?` 代替显示
## 注意,tiflash-learner 对应的安全配置选项为 `security.redact-info-log`,需要在 tiflash-learner.toml 中另外开启
# redact_info_log = false
Expand All @@ -174,11 +175,18 @@ delta_index_cache_size = 0
```toml
[server]
engine-addr = 外部访问 TiFlash coprocessor 服务的地址

[raftstore]
## 控制处理 snapshot 的线程数,默认为 2。设为 0 则关闭多线程优化
snap-handle-pool-size = 2
## 控制 raft store 持久化 WAL 的最小间隔。通过适当增大延迟以减少 IOPS 占用,默认为 4ms,设为 0ms 则关闭该优化。
store-batch-retry-recv-timeout = "4ms"

[security]
## 从 v5.0 引入,控制是否开启日志脱敏
## 若开启该选项,日志中的用户数据会以 `?` 代替显示
## 默认值为 false
redact-info-log = false
```

除以上几项外,其余功能参数和 TiKV 的配置相同。需要注意的是:`tiflash.toml [flash.proxy]` 中的配置项会覆盖 `tiflash-learner.toml` 中的重合参数;`key``engine``label` 是保留项,不可手动配置。
Expand Down

0 comments on commit ec84bbd

Please sign in to comment.