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.
Savepoint format options:
-
Native format: Faster generation and smaller storage footprint, but does not support cross-version usage.
-
Standard format: Slower generation and larger storage footprint compared to native format, used for cross-version deployment migration.
-
-
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.
After the deployment is cancelled, the deployment status changes to Cancelled.
Usage notes
While a deployment is running, the system retains only the latest checkpoint. Canceling a deployment does not delete this checkpoint.