If you modify the SQL code for a deployment, add or delete parameters to or from the WITH clause, or change the version of a deployment, you must publish the deployment again, and cancel the deployment, and then restart the deployment to make the changes take effect. If a deployment fails and cannot reuse the state data to recover, you must cancel and then restart the deployment. This topic describes how to cancel a deployment.
The deployment is running.
If you want to allow other Alibaba Cloud accounts or RAM users to use your resources in fully managed Flink, you must grant them the required permissions, such as the permissions to cancel a deployment. For more information, see Grant permissions to an account.
The system retains only the latest checkpoint when a deployment is running. When the deployment is canceled, the system does not automatically delete the checkpoint.
Go to the Deployments page.
Log on to the Realtime Compute for Apache Flink console.
On the Fully Managed Flink tab, find the workspace that you want to manage and click Console in the Actions column.
In the left-side navigation pane, click Deployments. On the Deployments page, find the desired deployment and click Cancel in the Actions column.
More Strategies provides the following options:
Stop With Savepoint: If you want the system to create a savepoint before the deployment is canceled, you can click More Strategies and select Stop With Savepoint in the Cancel this deployment dialog box. If you select Stop With Savepoint, the system creates a savepoint for the deployment and then the deployment enters the cancel process. If you do not select Stop With Savepoint, the deployment directly enters the cancel process.
Stop With Drain: If you select this option, the deployment is permanently terminated. For more information, see Drain.Important
If you want to restart the deployment later, do not select this option. If you select this option, an error may occur when the deployment is resumed.