Chen-Che Huang
03/17/2023, 1:50 AMincremental checkpointing and configure state.checkpoints.num-retained parameter to retain 10 checkpoints only in our Flink applications. Although Flink keeps only 10 checkpoints, the number of files under shared folder keeps increasingly. To reduce the storage cost, it seems that the CLAIM mode mentioned in this doc is useful. We configure execution.savepoint-restore-mode to CLAIM but Flink still doesn’t delete files under the shared folder. I’m curious about the CLAIM mode only delete savepoints and checkpoints after the Flink app starts from using a new savepoint? If so, does anyone know whether there exists some way to limit the growth of files under the shared folder for checkpoints? Any comment is appreciated 🙏Łukasz Maternia
03/21/2023, 7:42 AMczchen
03/23/2023, 3:29 PMIn 1.17, a REST API is provided so that users can manually trigger checkpoints with a self-defined checkpoint type while a job is running. For example, for a job running with incremental checkpoint, users can trigger a full checkpoint periodically or manually to break the incremental checkpoint chain to avoid referring to files from a long time ago.We can break the incremental checkpoint chain periodically, and configure retention to keep checkpoint storage small.