Skip to content

Commit

Permalink
Add TiFlash security configuration (#5094)
Browse files Browse the repository at this point in the history
* Add configuration

Signed-off-by: JaySon-Huang <tshent@qq.com>

* Apply suggestions from code review

* Apply suggestions from code review

Co-authored-by: Flowyi <flowbehappy@gmail.com>

* Apply suggestions from code review

Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com>

Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com>
Co-authored-by: Flowyi <flowbehappy@gmail.com>
  • Loading branch information
3 people authored Dec 18, 2020
1 parent 86ad171 commit f3fdf28
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tiflash/tiflash-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,19 @@ delta_index_cache_size = 0 # DeltaIndex 内存 cache 大小限制,默认为 0
dt_enable_logical_split = true # 存储引擎的 segment 分裂是否使用逻辑分裂。使用逻辑分裂可以减小写放大,提高写入速度,但是会造成一定的空间浪费。默认为 true
max_memory_usage = 0 # 单次 coprocessor 查询过程中,对中间数据的内存限制,单位为 byte,默认为 0,表示不限制
max_memory_usage_for_all_queries = 0 # 所有查询过程中,对中间数据的内存限制,单位为 byte,默认为 0,表示不限制

## 安全相关配置,从 v4.0.5 开始生效
[security]
## 若开启该选项,日志中的用户数据会以 `?` 代替显示
## 注意,tiflash-learner 对应的安全配置选项为 `security.redact-info-log`,需要在 tiflash-learner.toml 中另外开启
# redact_info_log = false

## 包含可信 SSL CA 列表的文件路径。如果你设置了该值,`cert_path` 和 `key_path` 中的路径也需要填写
# ca_path = "/path/to/ca.pem"
## 包含 PEM 格式的 X509 certificate 文件路径
# cert_path = "/path/to/tiflash-server.pem"
## 包含 PEM 格式的 X509 key 文件路径
# key_path = "/path/to/tiflash-server-key.pem"
```

### 配置文件 tiflash-learner.toml
Expand Down

0 comments on commit f3fdf28

Please sign in to comment.