Snapshots
On this page
- Status Set Management
- Background Information
- Manually Create a Savepoint
- Configure Scheduled Generation of Savepoints
- View the State Generation Overview
- Restore a Deployment from a Specified Savepoint of Another Deployment
- Configure Automatic Cleanup Rules for Savepoints
- Manually Delete a Specified Savepoint
- Configure the Parameters that are Related to State Backends
Status Set Management
The checkpoints and savepoints of a deployment are collectively called a state set. This section explains how to manage the states in the state set of a deployment. For example, you can create, view, or delete a state of a deployment, or restore a deployment from a specified state.
Background Information
The following table describes the operations that you can perform on checkpoints and savepoints in specific scenarios. For more information, see the related sections of this topic.
Manually Create a Savepoint
You can only create savepoints manually for a deployment that is in the RUNNING state.
- On the Dashboard page, open the console for the workspace you want to manage.
- In the Console navigation pane, click Deployments.
- Click the name of the desired deployment.
- In the upper-right corner of the Deployment details page, click Create Savepoint.
- Configure the Format parameter and enter a savepoint description.
- Click Create.
Configure Scheduled Generation of Savepoints
You can schedule savepoints for both running and canceled deployments.
- On the Dashboard page, open the console for the workspace you want to manage.
- In the Console navigation pane, click Deployments.
- Click the name of the desired deployment.
- Display the State tab.
- Turn on Savepoint automatically generated at regular intervals. (See also Automatic cleanup (#configure-automatic-cleanup-rules-for-savepoints) below.)
- Configure the Period setting parameter.
- Click Save Changes.
The minimum interval is 10 minutes. If the interval that you specify by using a CRON expression is less than 10 minutes, the system automatically creates savepoints at an interval of 10 minutes.
You can click Quick Setting and select a period of time from the drop-down list based on your business requirements. You can also use a CRON expression to specify the interval.
To use a CRON expression to specify the interval, you can click the field that you want to modify in the Period setting parameter and change the value of each field. The following table describes the values of the five fields in a CRON expression and the special characters that are supported.
The following table describes the meanings of the special characters that are supported in each field in a CRON expression.
The following table describes sample values of CRON expressions.
View the State Generation Overview
- On the Dashboard page, open the console for the workspace you want to manage.
- In the Console navigation pane, click Deployments.
- Click the name of the desired deployment.
- Display the State tab.
- On the Overview tab under the State tab, the information displayed is described in the following table.
Restore a Deployment from a Specified Savepoint of Another Deployment
You can restore only a deployment that is in the CANCELLED state from a specified savepoint. If your deployment is in the RUNNING state, you must cancel the deployment first.
- On the Dashboard page, open the console for the workspace you want to manage.
- In the Console navigation pane, click Deployments.
- Click the name of the desired deployment.
- Display the State tab.
- Click the History tab under the State tab.
- In the Savepoints section, find the desired savepoint.
- Click Start job from this snapshot in the Actions column.
- In the Job Startup Configuration dialog box, configure the parameters.
Configure Automatic Cleanup Rules for Savepoints
- On the Dashboard page, open the console for the workspace you want to manage.
- In the Console navigation pane, click Deployments.
- Click the name of the desired deployment.
- Display the State tab.
- On the Configure tab under the State tab, configure automatic cleanup rules for savepoints.
- Turn on Scheduled automatic cleaning of savepoint.
- Configure the Number of historical snapshots saved and The maximum time to save historical snapshots (unit: hours) parameters. When the deployment is running, the system automatically deletes savepoints if one of the conditions is met.
- Click Save Changes.
Manually Delete a Specified Savepoint
- On the Dashboard page, open the console for the workspace you want to manage.
- In the Console navigation pane, click Deployments.
- Click the name of the desired deployment.
- Display the State tab.
- On the History tab under the State tab, move the pointer down.
- In the Savepoints section, find the desired savepoint.
- Choose More > Delete this snapshot in the Actions column.
- In the message that appears, click OK.
Configure the Parameters that are Related to State Backends
- On the Dashboard page, open the console for the workspace you want to manage.
- In the Console navigation pane, click Deployments.
- Click the name of the desired deployment.
- Choose Parameters, and click Edit.
- Update
State Expiration Time. Then, click Save.