Job settings reference
Each SQL job has settings for execution, checkpoints and savepoints, Kubernetes resources, and autoscaling. Each setting has a default value, limits, and, where one applies, the Flink property that it sets.
About the job settings
To open the settings of a job, click the Job Settings icon next to the SQL editor. The settings apply when the job starts. To change the settings of a running job, stop the job, change the settings, and start it again. For the procedure, see Configuring job settings.
Some defaults come from the global settings of Cloudera SQL Stream Builder (SSB), which SSB administrators manage. The Set global values link in the job settings opens them.
General tab
| Setting | Flink property | Default | Values and limits |
|---|---|---|---|
| Execution Mode | None | SESSION | SESSION runs the job on your session cluster. APPLICATION runs the job on its own Flink cluster. For more information, see Configuring the session and Running a job in application mode. |
| Runtime Mode | execution.runtime-mode |
STREAMING | STREAMING, BATCH, or AUTOMATIC. You can change it only in APPLICATION mode. |
| Job Parallelism (threads) | Job parallelism | 1 | 1 or more |
| Restore From Savepoint | None | Cleared | When selected, stopping the job takes a savepoint, and starting the job restores it from its latest savepoint. |
| Savepoint Directory | execution.checkpointing.savepoint-dir |
The global savepoint directory | Displayed when Restore From Savepoint is selected |
| Enable Checkpointing | None | Cleared for a new job | When cleared, the job takes no checkpoints, and the restart strategy is none. |
| Checkpoint Directory | execution.checkpointing.dir |
The global checkpoint directory | Displayed when Enable Checkpointing is selected |
| Checkpoint Mode | execution.checkpointing.mode |
At Least Once | At Least Once or Exactly Once |
| Checkpoint Interval (ms) | execution.checkpointing.interval |
600000 | The time between checkpoint attempts |
| Checkpoint Timeout (ms) | execution.checkpointing.timeout |
60000 | The maximum time to complete a checkpoint |
| Tolerable Checkpoint Failures | execution.checkpointing.tolerable-failed-checkpoints |
2 | The number of failed checkpoints before the job fails |
| Failure Restart Strategy | restart-strategy.type |
Enable Auto Recovery | Enable Auto Recovery sets exponential-delay. Disable Auto Recovery sets none. Displayed when Enable Checkpointing is selected. |
The sampling settings are not displayed because result sampling is not available in this release.
Restart delays
With Enable Auto Recovery, the job restarts after a failure with the following delays:
| Flink property | Value |
|---|---|
restart-strategy.exponential-delay.initial-backoff |
1 s |
restart-strategy.exponential-delay.max-backoff |
60 s |
restart-strategy.exponential-delay.backoff-multiplier |
1.1 |
restart-strategy.exponential-delay.reset-backoff-threshold |
2 s |
restart-strategy.exponential-delay.jitter-factor |
0.1 |
Kubernetes Resources tab
| Setting | Flink property | Default | Values and limits |
|---|---|---|---|
| Deployment Mode | Kubernetes deployment mode of the Flink cluster | NATIVE | NATIVE or STANDALONE |
| Restart Failed Job | kubernetes.operator.job.restart.failed |
Cleared | When selected, the Flink Kubernetes Operator restarts the job after it fails. |
| Job Manager Replicas | JobManager replicas | 1 | 1 or more |
JobManager and TaskManager resource settings
The Job Manager Resource Config and Task Manager Resource Config sections of the Kubernetes Resources tab have the same settings. Each one applies to the JobManager or TaskManager pods. If you leave a setting empty, the global value applies. For the global values, see the global settings later in this topic.
| Setting | Flink property | Values and limits |
|---|---|---|
| CPU Request | CPU request of the pod | A number greater than 0 |
| CPU Limit | kubernetes.jobmanager.cpu.limit-factor or
kubernetes.taskmanager.cpu.limit-factor |
A factor of the CPU request, not an absolute value. A number greater than 0. |
| Memory Request | Memory request of the pod | A Kubernetes quantity, for example 2G or 2048Mi |
| Memory Limit | kubernetes.jobmanager.memory.limit-factor or
kubernetes.taskmanager.memory.limit-factor |
A factor of the memory request, not an absolute value. A number greater than 0. |
| Ephemeral Storage | Ephemeral storage of the pod | A Kubernetes quantity |
Because the Kubernetes resource settings define a Flink cluster, they apply to jobs in APPLICATION mode. A job in SESSION mode runs on your session cluster. The resource settings of the first job that runs in the session define the session cluster, and SSB ignores the resource settings of later jobs.
Autoscaler tab
The autoscaler settings configure the Flink autoscaler for the job. If you leave a setting empty, the default of the Flink autoscaler applies.
The autoscaler changes the parallelism of the job. It does not add nodes to the compute cluster, because automatic scaling of the compute cluster is not available in this release. Leave enough capacity for the highest parallelism that you allow. For more information, see Cluster sizing and Unsupported features.
| Setting | Flink property | Default | Values and limits |
|---|---|---|---|
| Enabled | job.autoscaler.enabled |
Cleared | Selected or cleared |
| Busy Time Aggregator | job.autoscaler.metrics.busy-time.aggregator |
MAX | MAX suits jobs with more data skew. AVG is more stable when the load is distributed evenly. |
| Target Utilization | job.autoscaler.utilization.target |
0.7 | A number greater than 0 |
| Target Utilization Boundary | job.autoscaler.target.utilization.boundary |
0.3 | A number greater than 0. The option is deprecated in the Flink autoscaler, but it still works. Cloudera SQL Stream Builder does not support its replacements, the maximum and minimum utilization. |
| Metrics Window | job.autoscaler.metrics.window |
15 min | A duration, for example 15 min |
| Scale Up Max Factor | job.autoscaler.scale-up.max-factor |
100000.0 | A number greater than 0. For example, 2.0 allows a vertex to scale up to 200% of its current parallelism. |
| Scale Down Max Factor | job.autoscaler.scale-down.max-factor |
0.6 | A number greater than 0. For example, 0.6 allows a vertex to scale down by at most 60% of its current parallelism. |
| Vertex Max Parallelism | job.autoscaler.vertex.max-parallelism |
200 | A whole number greater than 0 |
| Vertex Min Parallelism | job.autoscaler.vertex.min-parallelism |
1 | A whole number greater than 0 |
For more information about the autoscaler, see Autoscaler in the Flink Kubernetes Operator documentation.
Global settings
SSB administrators set the following global values. Jobs use them when their own setting is empty.
| Global setting | Default |
|---|---|
| Savepoint directory | s3://[***INSTANCE-DIR***]/savepoints
in the bucket that is bound to the default purpose of the
engine |
| Checkpoint directory | s3://[***INSTANCE-DIR***]/checkpoints
in the bucket that is bound to the default purpose of the
engine |
| JobManager CPU request | 1.0 |
| JobManager CPU limit factor | 1.5 |
| JobManager memory request | 2G |
| JobManager memory limit factor | 2.0 |
| JobManager ephemeral storage | 4G |
| TaskManager CPU request | 0.5 |
| TaskManager CPU limit factor | 3.0 |
| TaskManager memory request | 2G |
| TaskManager memory limit factor | 2.0 |
| TaskManager ephemeral storage | 4G |
The instance directory is the folder of the engine in the bound bucket. For more information, see Preparing storage for Cloudera Streaming Analytics.
A checkpoint or savepoint directory that you set must be in a bucket that is bound to the Cloudera Streaming Analytics engine instance. Jobs get the storage credentials of the bound buckets only. A path in another bucket fails with an access error.
