You must configure a deployment before you start the deployment. This topic describes how to configure a deployment.
Prerequisites
If another Alibaba Cloud account or a RAM user wants to access a namespace in the console of fully managed Flink, you must grant permissions to the Alibaba Cloud account or the RAM user to perform operations such as configuration of deployment resources. For more information, see Authorize an account to perform operations related to drafts and deployments.
A deployment is created. For more information, see Create a deployment.
Procedure
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, click the name of the desired deployment.
In the upper-right corner of the desired section on the Configuration tab, click Edit.
NoteYou must go back to the SQL Editor page to edit and deploy the deployment when you configure the basic configuration for the deployment. After you click Edit in the upper-right corner of the Basic section, a message appears. If you want to edit the deployment, click OK in the message.
Modify the configuration of the deployment.
You can modify the deployment configuration in the following sections:
In the upper-right corner of the desired section, click Save.
Basic section
Deployment type | Description |
SQL deployment | You can write SQL code and configure the Engine Version, Additional Dependencies, Description, and Label parameters. For more information about the parameters, see Develop an SQL draft. Note After you click Edit in the upper-right corner of the Basic section, a message appears. If you want to modify the deployment configuration, click OK in the message. Then, you are redirected to the SQL Editor page to edit and deploy the deployment. |
JAR deployment | You can configure the Engine Version, JAR Uri, Entry Point Class, Entry Point Main Arguments, Additional Dependencies, Description, Kerberos Name, and Label parameters. For more information about the parameters, see Create a JAR deployment. |
Python deployment | You can configure the Engine Version, Python Uri, Entry Module, Entry Point Main Arguments, Python Libraries, Python Archives, Additional Dependencies, Description, Kerberos Name, and Label parameters. For more information about the parameters, see Create a Python deployment. |
Parameters section
Parameter | Description |
Checkpointing Interval | The interval at which a checkpoint is generated. If you do not configure this parameter, the checkpointing feature is disabled. |
Checkpointing Timeout time | Default value: 10. Unit: minutes. If the checkpointing timeout time exceeds the default value of this parameter, checkpoints fail to be generated. |
Min Interval Between Checkpoints | The minimum interval between two checkpoints. If the maximum parallelism of checkpoints is 1, this parameter specifies the minimum interval between the two checkpoints. |
State Expiration Time | If the state data expires the time that is specified by this parameter, the system automatically removes the expired state data. This way, disk space is released. |
Flink Restart Policy | If a task fails and the checkpointing feature is disabled, the JobManager cannot be restarted. If the checkpointing feature is enabled, the JobManager is restarted. Valid values:
|
Other Configuration | Other Flink settings, such as |
Logging section
Parameter | Description |
Log Archiving | By default, Allow Log Archives is turned on. After you turn on Allow Log Archives in the Logging section, you can view the logs of a historical job on the Logs tab. For more information, see View the logs of a historical job. Note
|
Log Archives Expires | By default, the archived log files are valid for seven days. |
Root Log Level | You can specify the following log levels. The levels are listed in ascending order of urgency.
|
Log Levels | Enter the log name and log level. |
Logging Profile | You can set this parameter to default or Custom Template. |