Skip to content

Commit

Permalink
[2.0.2] zh: add two keepalive config in worker config file (#567) (#583)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-srebot authored Apr 9, 2021
1 parent ca37f6e commit daa03a8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions zh/dm-worker-configuration-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ worker-addr = ":8262"
advertise-addr = "127.0.0.1:8262"
join = "http://127.0.0.1:8261,http://127.0.0.1:8361,http://127.0.0.1:8461"

keepalive-ttl = 60
relay-keepalive-ttl = 1800 # 版本 2.0.2 新增

ssl-ca = "/path/to/ca.pem"
ssl-cert = "/path/to/cert.pem"
ssl-key = "/path/to/key.pem"
Expand All @@ -41,6 +44,8 @@ cert-allowed-cn = ["dm"]
| `worker-addr` | DM-worker 服务的地址,可以省略 IP 信息,例如:":8262"。|
| `advertise-addr` | DM-worker 向外界宣告的地址。 |
| `join` | 对应一个或多个 DM-master 配置中的 [`master-addr`](dm-master-configuration-file.md#global-配置)|
| `keepalive-ttl` | 当绑定的上游数据源没有启用 relay log 时,DM-worker 向 DM-master 保持存活的周期,单位为秒。默认是 60 秒。 |
| `relay-keepalive-ttl` | 当绑定的上游数据源启用 relay log 时,DM-worker 向 DM-master 保持存活的周期,单位为秒。默认是 1800 秒。在版本 2.0.2 新增。 |
| `ssl-ca` | DM-worker 组件用于与其它组件连接的 SSL CA 证书所在的路径 |
| `ssl-cert` | DM-worker 组件用于与其它组件连接的 PEM 格式的 X509 证书所在的路径 |
| `ssl-key` | DM-worker 组件用于与其它组件连接的 PEM 格式的 X509 密钥所在的路径 |
Expand Down

0 comments on commit daa03a8

Please sign in to comment.