br 执行全量恢复,报错 Coprocessor task terminated due to exceeding the deadline

在执行 BR 恢复命令时,如果出现 Coprocessor task terminated due to exceeding the deadline 的错误,这通常是由于 BR 工具的默认超时时间过短导致的。您可以尝试增加 --timeout 参数来延长 BR 工具的超时时间,例如:

tiup br restore full --pd “${PD_ADDR}” --storage “local://${BAKDIR}” --ratelimit 64 --log-file restorefull_date +%Y%m%d.log --timeout 7200s

以上命令将 BR 工具的超时时间设置为 7200 秒(2 小时),您可以根据实际情况进行调整