Dheeraj Panangat
06/30/2023, 11:18 AMjob_<jobid>_op_KeyedProcessOperator_<operatorid>__<taskIndex>_<totalParallelism>__uuid_<randomuuid>/
Here the folder name changes every time the job restarts. Also the folders seem to be deleted after restarts.
How do I make sure the state is retained and when I restart the job, it is able to query the state.
Appreciate any inputs on this.
ThanksGiannis Polyzos
06/30/2023, 11:25 AMsap1ens
06/30/2023, 3:33 PMDheeraj Panangat
07/03/2023, 5:09 AMDheeraj Panangat
07/03/2023, 9:06 AMconfig.setExternalizedCheckpointCleanup(ExternalizedCheckpointCleanup.RETAIN_ON_CANCELLATION);sap1ens
07/03/2023, 5:17 PMoh, dint know that. What would you suggest instead of EFS for persistent storage ?Just rely on S3 for failure recovery (using checkpoints / savepoints). And for the actual RocksDB backend you need to use the fastest SSD drive possible. Even EBS disks can affect performance, so it’s better to use instance-level storage. Yes, that’s not persistent, but that’s why you’re using S3 for failure recovery.
Dheeraj Panangat
07/04/2023, 4:58 AMsap1ens
07/04/2023, 3:44 PMHow would it be able to read the state for the previous checkpoints ?Short answer: you don’t 🙂 It’s possible, but it can become a big headache, because checkpoints are usually not self-contained (I assume you’re using incremental checkpoints). It’s better to use savepoints for redeployments instead.