After creating a deployment, you must start it on the Deployments page. Starting a deployment is also necessary to resume a stopped deployment or to apply parameter updates that require a restart.
Prerequisites
An existing deployment is required. For more information, see Create a deployment.
Limitations
You can specify startup options only for a streaming deployment.
Precautions
-
If a RAM user, RAM role, or another Alibaba Cloud account starts a deployment, ensure that the corresponding identity has access to the target namespace. For more information, see Authorize access to the fully managed Flink console and Manage permissions.
-
If you start a deployment by using the Latest State or Specific State option, the system performs a state compatibility check. Starting a deployment with detected incompatibilities is risky, as it may fail or produce unexpected results. For more information, see Flink state compatibility reference.
Procedure
-
Open the Start dialog for the deployment.
-
Log on to the fully managed Flink console as a user who has the owner role for the namespace.
-
In the top navigation bar, select the target namespace.
-
On the page, from the drop-down list, select streaming deployment or batch deployment.
-
-
Find the target deployment and in the Actions column, click Start.
-
(Optional) For a streaming deployment, configure the startup options.
-
Initial mode
Select this mode for a new deployment or when you cannot reuse an existing state. Based on your business requirements, you can also decide whether to enable Autopilot.
Strategy
Description
Specify source's start time
Select Specify source's start time and enter a specific time.
You can set a start time in the UI for the following seven connectors: Kafka, Log Service (SLS), DataHub, ApsaraMQ for RocketMQ, Hologres, Paimon, and MySQL.
The data read time specified on the deployment startup interface takes precedence over the startTime set in the deployment DDL code.
Note-
Kafka versions earlier than 0.11 may not be supported due to potential incompatibility with the Kafka client version used by the connector. We recommend that you upgrade your Kafka version.
-
Not all connectors support configuring the startTime parameter. For more information, see the WITH parameters for each connector, such as Log Service (SLS) WITH parameters, to check whether startTime is included.
-
Only when you start a new deployment and specify startTime does startTime take effect. If you start a deployment from a checkpoint or a savepoint, specifying startTime has no effect.
Configure Autopilot
Turn on this switch and select a tuning mode:
-
Autopilot Mode: The system automatically scales resources down when usage is low and scales them up when usage reaches a certain threshold. For more information, see Enable and configure Autopilot.
-
Scheduled Mode: You must select a schedule from the drop-down list. A schedule can contain multiple resource configurations for different time points. You can configure resources based on usage patterns during various periods. For more information, see Configure and apply a scheduled tuning plan.
-
-
Resume mode
You can select a startup strategy based on your business requirements and decide whether to enable Autopilot.
Strategy
Description
Latest State
Resumes the deployment from the latest available
savepointorcheckpoint. If you select this option for an SQL deployment, the Flink system detects changes in the SQL code, Flink runtime parameters, and engine version.If changes are detected, we recommend that you click Click to detect next to State Compatibility to check for compatibility. Then, proceed based on the results. For information about the compatibility results and suggested actions, see Compatibility.
Specific State
Select a specific savepoint to resume from. To learn how to create a savepoint, see Manage deployment state.
Other deployment state
After you select this option, specify a target deployment and its corresponding savepoint to resume from. Savepoints can be shared between deployments, but the state must be compatible. For more information, see Manage deployment state.
Allow Non-restored State (AllowNonRestoredState)
NoteThis option is supported only for JAR deployments.
By default, Flink attempts to map the entire savepoint to the operators of the new deployment. If modifications to the deployment cause changes to the operator state, the deployment might fail to resume. Enable this option to allow Flink to skip any state that cannot be mapped and proceed with startup. For more information, see Allow Non-Restored State.
Configure Autopilot
Turn on this switch and select a tuning mode:
-
Autopilot Mode: The system automatically scales resources down when usage is low and scales them up when usage reaches a certain threshold. For more information, see Enable and configure Autopilot.
-
Scheduled Mode: You must select a schedule from the drop-down list. A schedule can contain multiple resource configurations for different time points. You can configure resources based on usage patterns during various periods. For more information, see Configure and apply a scheduled tuning plan.
-
-
-
Click Start.
On the page, view the status of the deployment. For more information, see View deployment status.
Related documents
-
After a deployment starts, if you need to modify its runtime parameters, see Configure runtime parameters. Some parameters also support dynamic parameter updates, which avoids the downtime associated with stopping and restarting deployments. For more information, see Dynamic scaling and dynamic parameter updates.
-
After a deployment starts, if you need to trace its data to locate issues or assess impact, see View data lineage.
-
To learn about the enterprise-grade GeminiStateBackend and its performance comparison with RocksDBStateBackend, see Introduction to the enterprise-grade state backend.
-
For APIs related to starting and stopping deployments, see Deployment instances.