Configurations
The Configurations page provides workspace-level settings, including default job configurations, message delivery, and alert rule templates. This topic describes the tabs on the Configurations page and how to configure them.
Access the Configurations page
Log on to the Realtime Compute for Apache Flink console.
In the Actions column of the target workspace, click Console.
In the left-side navigation pane, click O&M > Configurations.
Deployment Defaults
Deployment Defaults is a workspace-level general configuration. Configured once, it applies to all jobs in the workspace and removes the need to repeat the same settings for each job. After you finish the configurations, click Save Changes. To discard the changes, click Discard Changes.
Defaults for Stream
Starting Parameters
Parameter | Description |
Checkpointing Interval | How often a checkpoint is generated. If not set, the default value of the job engine version is used. |
Min Interval Between Checkpoints | The minimum gap between two consecutive checkpoints. When the maximum checkpoint parallelism is 1, this defines the minimum interval between checkpoints. If not set, the default value of the job engine version is used. |
Checkpointing Timeout Time | The maximum time allowed for a checkpoint to complete. Default: 10 minutes. If a checkpoint does not complete within this time, it fails. |
State Expiration Time | The time-to-live (TTL) of state data. The state service removes stored state after the configured period elapses. This parameter takes effect only for SQL jobs. |
Flink Restart Policy
Select a restart policy. If you select Fixed Delay, set the following parameters:
Parameter | Description |
Number of Restart Attempts | The number of times that Flink retries the execution before the job is declared as failed. If activated by checkpointing, Integer.MAX_VALUE is used. |
Delay Between Restart Attempts | Delaying the retry means that after a failed execution, the re-execution does not start immediately, but only after a certain delay. Delaying the retries can be helpful when the program interacts with external systems where, for example, connections or pending transactions should reach a timeout before re-execution is attempted. If activated by checkpointing, 10s is used. |
Other Configuration
In the Other Configuration text box, you can set other Flink configurations. Example: taskmanager.numberOfTaskSlots: 1.
Logging
Parameter | Description |
Root Log Level | Select the log level of the root logger. |
Log Levels | Set the log level for a specific class. Enter the logger name and select the log level. |
Logging Profile | Select a log template. Default: default. To customize the log output destination for all jobs in the workspace, select a custom template. For more information, see Configure job log output. |
Defaults for Batch
The Defaults for Batch sub-tab does not include checkpoint or State Expiration Time settings. The Flink Restart Policy, Other Configuration, and Logging items are the same as those on the Defaults for Stream sub-tab.
Message Delivery
The Message Delivery tab delivers messages such as job startup logs, resource usage, running events, and job status changes to Simple Log Service (SLS). For more information, see Deliver messages.
Alarm Templates
The Alarm Templates tab creates and manages alert rule templates. After a template is created, you can use it to create alerts for jobs without configuring each rule from scratch. For more information, see Configure alert rules.