Hi Vivek, This is a very valuable direction. During the implementation, I think we should carefully consider the following scenarios: - How should we start or recover the SharedCheckpointScheduler when the master node switches over or fails over. - How should schema evolution be handled for CDC jobs. - In a job containing multiple pipelines, how should we handle the failure of a single pipeline. - How should other checkpoint-related configuration options, such as checkpointMinPause, be handled by the new SharedCheckpointScheduler.
Best regards, Zhiwei Niu Vivek Gangavarapu <[email protected]> 于2026年9月17日周四 11:54写道: > Hi all, > > I would like to start a discussion on STIP-40, which proposes replacing > Zeta's per-coordinator checkpoint timer pool with a member-wide shared > scheduler. > > STIP-40: https://github.com/apache/seatunnel/issues/12339 > Issue: https://github.com/apache/seatunnel/issues/12122 > PR: https://github.com/apache/seatunnel/pull/12165 > > Problem: CheckpointCoordinator constructs its own two-thread scheduled > pool, and CheckpointManager builds one coordinator per pipeline. Timer > threads therefore grow linearly with the number of checkpoint-enabled > pipelines on a member. A member running 500 of them holds up to 1000 > threads that are asleep nearly all of the time. The pool is only ever used > as a timer, with two call sites: the periodic trigger re-arm and the > checkpoint-timeout watchdog. > > Proposal: one shared scheduler per member, with each coordinator holding a > per-pipeline lease keyed by (jobId, pipelineId) so cancellation stays > scoped. Timing and execution are split across two pools so a checkpoint > blocking on IO or a slow RPC cannot delay any other pipeline's timers, or > its own next tick. > > No new Option, no default change, no checkpoint or savepoint format change, > and the single-pending-checkpoint invariant is preserved. > > The main open question I would like input on: issue #12122 asks for a > bounded scheduler. The timer pool is bounded, but the dispatch pool is not. > Bounding it requires choosing a rejection policy, and a rejected task here > is a dropped checkpoint trigger or a dropped timeout watchdog. The > tradeoffs for each candidate policy are written out in the Design section > of the STIP. > > A secondary question: whether the timer pool size should stay a constant or > become a configurable Option. > > Feedback welcome, on the issue or here. > > Thanks, > Vivek >
