Session Clusters
Session clusters are suitable for development and test purposes in non-production environments. You can deploy or debug jobs in a session cluster to improve the resource utilization of a JobManager and accelerate the job startup.
Background Information
A Session cluster allows multiple jobs to use the same JobManager, which increases the resource utilization of the JobManager. If multiple jobs run on the same JobManager, the stability of jobs is affected. Session clusters do not support the monitoring and alerting feature for a single job. Therefore, session clusters are suitable only when you test jobs.
When you create a session cluster, the cluster resources are consumed regardless of whether you use the session cluster. The resource consumption is based on the configurations that you select when you create the cluster.
Precautions
Session clusters are suitable for development and test environments. Ververica recommends that you do not use session clusters in production environments. If you use session clusters in production environments, the following stability issues may occur:
- If a JobManager is faulty, all jobs running on the Session Cluster are affected.
- If a TaskManager is faulty, the jobs that have tasks running on the TaskManager are affected.
- If processes are not isolated for tasks that run on the same TaskManager, the tasks may be affected by each other.
If the session cluster uses the default configurations, take note of the following points:
- For a single small job, Ververica recommends that the total number of such jobs in a cluster be no more than 100.
- For complex jobs, Ververica recommends that the number of parallel jobs be no more than 512, and the number of clusters in which 64 medium-sized jobs run in parallel be no more than 32. Otherwise, issues such as heartbeat timeout may occur and the stability of the cluster may be affected. In this case, you must increase the heartbeat interval and heartbeat timeout period.
- If you want to run more tasks at the same time, you must increase the resource configuration of the session cluster.
Create a Session Cluster
- On the Dashboard page, open the console for the workspace you want to manage.
- In the Console navigation pane, click Session Clusters.
- Click Create Session Cluster.
- Configure the parameters. See Parameter descriptions below.
- Click Create Session Cluster.
Once configured and created, using the parameter descriptions below, you can Start the cluster.
Parameter Descriptions
Standard Section
Parameter | Description |
---|---|
Name | The name of the Session Cluster. |
State | The desired state of the cluster. Valid values: STOPPED: The cluster is stopped after it is configured, and the jobs in the cluster are also stopped. RUNNING: The cluster keeps running after it is configured. |
Label key | You can configure labels for jobs in the Labels section. This allows you to find a job on the Overview page in an efficient manner. |
Label value | N/A |