Configuring Job Restoration from Snapshots After a Failure and Restart
Scenarios
When a Flink job fails and restarts, snapshots (savepoints or checkpoints) are typically used to restore the job state to ensure data consistency and accuracy. However, in some cases, using snapshots (savepoints or checkpoints) can make the recovery process difficult and slow, especially when jobs fail often. Flink allows jobs to restart without using snapshots (savepoints or checkpoints) to reduce recovery time and improve job availability and performance.
Notes and Constraints
- This section applies only to MRS 3.6.0-LTS.1 and later.
- This feature must be used together with the Flink job restart policy. For details, see Configuring the Flink Job Restart Policy.
- Flink jobs start using snapshots (savepoints or checkpoints).
- If checkpointing is not enabled while the Flink job runs, check if Enable CheckPoint is selected on the job development page by referring to Creating a FlinkServer Job.
Procedure
- Configure a proper Flink job restart strategy by referring to Configuring the Flink Job Restart Policy based on your service scenario.
- Log in to FusionInsight Manager as a user with the FlinkServer administrator permissions. Choose Cluster > Services > Flink. On the right of Flink Web UI, click the link to access the Flink web UI.
- Click Job Management.
- On the FlinkServer job management page, create a job by referring to Creating a FlinkServer Job or select an existing job, and open the job development page.
- On the job development page, set Name to execution.state-recovery.restart-from-savepoint and Value to false in the Customized Parameter area to allow jobs to restart without using snapshots (savepoints and checkpoints). Then, submit the Flink job for the settings to take effect. Figure 1 Customized Parameter
- To restore a Flink job from a snapshot (savepoint or checkpoint).
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot