Skip to content
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

dm: add a configuration to adjust safe mode duration when dm task abnormal reboot #10555

Merged
merged 7 commits into from
Sep 15, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update dm/task-configuration-file-full.md
Co-authored-by: xixirangrang <hfxsd@hotmail.com>
  • Loading branch information
ran-huang and hfxsd authored Jul 19, 2022
commit 37fba10bc9f5b463ae046cb6569ab37e47dc4c0f
2 changes: 1 addition & 1 deletion dm/task-configuration-file-full.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ syncers: # sync 处理单元的运行配置参数
# 自动安全模式的持续时间
# 如不设置或者设置为 "",则默认为 `checkpoint-flush-interval`(默认为 30s)的两倍,即 60s。
# 如设置为 "0s",则在 DM 自动进入安全模式的时候报错。
# 如设置为正常值,例如 "1m30s",则在该任务异常暂停、记录 safemode_exit_point 失败、或是 DM 进程异常退出时,把安全模式持续时间调整为 1 分 30 秒。详情可见 https://docs.pingcap.com/zh/tidb/stable/dm-safe-mode#自动开启。
# 如设置为正常值,例如 "1m30s",则在该任务异常暂停、记录 safemode_exit_point 失败、或是 DM 进程异常退出时,把安全模式持续时间调整为 1 分 30 秒。详情可见[自动开启安全模式](https://docs.pingcap.com/zh/tidb/stable/dm-safe-mode#自动开启)
okJiang marked this conversation as resolved.
Show resolved Hide resolved
safe-mode-duration: "60s"
# 设置为 true,DM 会在不增加延迟的情况下,尽可能地将上游对同一条数据的多次操作压缩成一次操作。
# 如 INSERT INTO tb(a,b) VALUES(1,1); UPDATE tb SET b=11 WHERE a=1; 会被压缩成 INSERT INTO tb(a,b) VALUES(1,11); 其中 a 为主键
Expand Down