2 个回答
具体的措施有:
1、配置启用checkpoint
1、配置启用checkpoint
-- 启用Checkpoint,设置间隔和超时时间
SET 'execution.checkpointing.interval' = '5min';
SET 'execution.checkpointing.timeout' = '10min';
SET 'execution.checkpointing.mode' = 'exactly-once'; -- 或 'at-least-once'
2、手动出发savepoint# 在维护或升级前主动保存状态
bin/flink savepoint <jobId> [targetDir]
发布于:1周前 (05-29) IP属地:
如果涉及到类似kafka这些支持重试的外部连接器,需要配置restart-strategy
SET 'restart-strategy.fixed-delay.attempts' = '5';
SET 'restart-strategy.fixed-delay.delay' = '10s';
发布于:1周前 (05-29) IP属地:
我来回答
您需要 登录 后回答此问题!