Cancel a running deployment to apply changes to its SQL code, configuration parameters, or version, or to perform a fresh start when the deployment cannot reuse its state.
Prerequisites
A running deployment
If you share your fully managed Flink service with other Alibaba Cloud accounts or RAM users, grant them the permissions required to cancel a deployment. For details, see Grant permissions in the development console.
Cancel a deployment
-
Go to the Deployments page.
Log on to the Realtime Compute for Apache Flink console.
Find your workspace and click Console in the Actions column.
-
On the page, find the target deployment and click Cancel in the Actions column.
Configure the cancellation options as needed:
Create a savepoint before canceling: Click More Strategies and select Create a savepoint before canceling to take a savepoint before cancellation starts. If you select Create a savepoint before canceling, the deployment first creates a savepoint and then starts the cancellation process. If you do not select Create a savepoint before canceling, the deployment directly starts the cancellation process.
-
Stop With Drain: Permanently terminates the deployment by emitting a final watermark that flushes all in-flight event-time state before shutdown. For details, see the Apache Flink documentation on drain.
ImportantDo not select this option if you plan to restart the deployment. Restarting a drained deployment may cause errors.
Click OK.
Usage notes
While a deployment is running, the system retains only the latest checkpoint. Canceling a deployment does not delete this checkpoint.