Cluster sizing for Cloudera Streams Messaging

Size the cluster for Cloudera Streams Messaging from your Kafka ingress rate, the number of topic partitions, and the number of Kafka Connect tasks. Each size lists the compute resources, storage, and Kafka settings that the workload needs.

Node groups

The following table lists the node groups of the Cloudera Streams Messaging blueprint. The Section column names the section of the Cluster Configuration page where you set the values:

Table 1. Node groups of the Cloudera Streams Messaging blueprint
Node group Section Node count CPU and RAM per node Storage per node
Control plane Control Plane Node 1 for development and testing. 3 for highly available production environments. 8 CPU, 16 GiB RAM 30 GB
CSM Nodes Worker Capacity 7 by default, 3 minimum 8 CPU, 16 GiB RAM minimum. 16 CPU, 24 GiB RAM recommended for production workloads. 80 GB root disk for the operating system and container images. Kafka data uses separate persistent volumes, 100 GiB by default.
Bastion Security Gateway 1 (fixed) 2 CPU, 2 GiB RAM 30 GB

The default of 7 CSM Nodes assumes the minimum instance flavor of 8 CPU and 16 GiB RAM. All CSM Nodes together must have at least 56 CPU and 112 GiB RAM. With a larger instance flavor, you can use fewer nodes, but not fewer than 3.

The default node groups and the default Kafka engine settings are a starting point. They are smaller than what some workloads need. To size the cluster for your workload, use the sizes in the following sections.

Choosing a size

Choose the smallest size that fits your workload. If your workload is larger than a size in any of the following values, choose the next size:

Table 2. Workload sizes
Size Average ingress, before replication (MB/s) Topic partitions (leaders) Kafka Connect tasks
S 1 300 10
M 10 2,000 30
L 50 6,000 100
XL 200 12,000 250

All sizes use the following assumptions:

  • Kafka keeps data for 2 days.
  • Topics have a replication factor of 3.
  • Stored data is 20% larger than the ingress, because of message overhead.
  • Peak ingress is twice the average ingress.
  • Consumers read twice the amount of data that producers write.
  • Consumers read at most 5 minutes behind the newest messages.
  • Each persistent volume provides 150 MB/s of disk throughput.

If your workload differs from these assumptions, such as a longer retention period, adjust the storage and the number of brokers.

Resources for each size

The deployment resources cover the components that run Cloudera Streams Messaging: the Strimzi cluster operator and drain cleaner, Cloudera Surveyor (two replicas), and the OpenTelemetry collectors. The workload resources cover the components that handle your data: the Kafka brokers and KRaft controllers, the Kafka Connect workers, and Schema Registry (two replicas) with its PostgreSQL database.

A request is the guaranteed minimum that a component needs, and a limit is the maximum that it can use before it is throttled. For memory, the request and the limit are the same. The values include a 25% safety margin. They do not include the Kubernetes control plane, Anywhere Cloud platform services, or short-lived pods. The OpenTelemetry collectors have no CPU limit, so the deployment CPU limits do not include them.

Table 3. Resources for each size
Size Deployment requests and limits Workload requests Workload limits Total requests Persistent storage (ReadWriteOnce)
S Requests: 2.5 CPU, 8 GiB. Limits: 8 CPU, 8 GiB. 13.5 CPU, 37 GiB 32 CPU, 37 GiB 16 CPU, 45 GiB 932 GB
M Requests: 2.5 CPU, 8 GiB. Limits: 8 CPU, 8 GiB. 15 CPU, 59 GiB 32 CPU, 59 GiB 17.5 CPU, 67 GiB 9,032 GB
L Requests: 3.5 CPU, 13 GiB. Limits: 13 CPU, 13 GiB. 44.5 CPU, 177 GiB 103.5 CPU, 177 GiB 48 CPU, 190 GiB 43,262 GB
XL Requests: 6 CPU, 23 GiB. Limits: 13 CPU, 23 GiB. 193.5 CPU, 772 GiB 386 CPU, 772 GiB 199.5 CPU, 795 GiB 176,152 GB

No size needs shared (ReadWriteMany) storage, object storage, GPUs, or extra disks. In all sizes, each CSM Nodes node needs an 80 GB SSD root disk, and each control plane node needs a 30 GB SSD root disk.

Choose the instance flavor and the number of CSM Nodes so that their combined CPU and RAM is larger than the total requests of your size. Leave room for the platform pods that run on each node. For size S on a new cluster without Cloudera Unified Data Fabric, 4 nodes of 8 CPU and 16 GiB RAM fit the workload with little headroom. Use 5 nodes so that pods can move when a node is drained.

Kafka settings for each size

The sizes assume the following Kafka brokers. You set these values in the Kafka engine configuration side panel, with the Broker Replicas, Broker CPU Request, Broker CPU Limit, Broker Memory Request and Limit, and Broker Storage Size properties:

Table 4. Kafka brokers for each size
Size Brokers CPU request and limit per broker Memory per broker Retained data, all brokers (provisioned at 70% fill)
S 3 2 CPU, 4 CPU 4 GiB 0.59 TB (0.85 TB)
M 3 2 CPU, 4 CPU 8 GiB 5.9 TB (8.5 TB)
L 6 4 CPU, 8 CPU 16 GiB 29.7 TB (42.4 TB)
XL 16 8 CPU, 16 CPU 32 GiB 118.7 TB (169.5 TB)

The provisioned storage includes the replication factor of 3 and 30% free space on each volume. To set Broker Storage Size, which is the size of the volume of each broker, divide the provisioned storage of your size by the number of brokers. For example, size S needs about 285 GB for each of its 3 brokers. The default of the property is 10Gi, which is less than any size needs.

The KRaft controllers use their own persistent volumes, set by Controller Storage Size, with a default of 10Gi.

Cloudera Unified Data Fabric

The resources for each size do not include Cloudera Unified Data Fabric, which provides Apache Ranger for access control. Several blueprints can share one Cloudera Unified Data Fabric instance. If an instance that is compatible with your version of Cloudera Streams Messaging already exists, on this cluster or on another cluster, the deployment reuses it, and you cannot provision a new one. In this case, you do not need extra resources on this cluster. If no compatible instance exists, the deployment provisions a new one. Add the following resources to your size:

  • Requests: 9.4 CPU, 21.6 GiB RAM
  • Limits: 21.5 CPU, 30 GiB RAM
  • Persistent storage (ReadWriteOnce): 62 GB

These values cover Cloudera Unified Data Fabric with its default settings, its PostgreSQL database, and its own Kafka cluster of 3 brokers and 3 controllers. For example, size S with Cloudera Unified Data Fabric on the same cluster needs 6 nodes of 8 CPU and 16 GiB RAM, or 4 nodes of 16 CPU and 24 GiB RAM.

Deploying on an existing cluster

Before you deploy on an existing cluster, ensure that at least 3 nodes of the cluster each have at least 10 CPU and 20 GiB RAM free. This applies to every size. The Anywhere Cloud Console checks this before it deploys. A node with 8 CPU and 16 GiB RAM cannot pass the check, so the node counts of 8 CPU and 16 GiB RAM in this topic apply only to a new cluster.

Pod resource limits

Pod resource requests and limits define the CPU and memory bounds for Kafka and Cloudera Surveyor engine pods on worker nodes. Both engines provide configurable defaults in their side panels.

Cloudera Streams Messaging applies Kubernetes resource requests and limits to the Pods deployed by the Kafka and Cloudera Surveyor engines. Requests help the scheduler place Pods on worker nodes with enough capacity. Limits prevent a single engine's Pods from consuming excessive CPU or memory on a node.

The Kafka and Cloudera Surveyor engine side panels expose the following CPU and memory settings:

  • CPU request: The minimum CPU guaranteed for the Pod, used by the scheduler to place Pods on nodes with enough capacity.
  • CPU limit: The maximum CPU the Pod might use before Kubernetes throttles the container. The CPU limit must be greater than or equal to the CPU request.
  • Memory request and limit: A single value sets both the guaranteed and maximum memory for the Pod. If a Pod exceeds the limit, Kubernetes might terminate and restart the container.

CPU values use Kubernetes quantities such as 100m (0.1 core) or 2 (two cores). Memory values use quantities such as 512Mi or 2Gi.

When to adjust resource limits

The defaults suit development and testing. Production workloads typically need larger values. Adjust values in the following situations:

  • You select larger worker instance flavors, such as 16 CPU cores and 24 GiB memory per node.
  • You expect sustained high throughput, large message payloads, or other production workloads that require more broker or controller capacity.
  • Monitoring shows Pods consistently throttled on CPU or restarting due to memory pressure.

Ensure the sum of resource requests across Pods on the same node remains feasible for your worker node count and instance flavor.

Resource settings and defaults

The Kafka and Cloudera Surveyor engine side panels expose the following Pod resource properties at deployment time. Adjust values only when your workload or environment requires it.

Table 5. Kafka engine pod resource properties
Property Default Applies to
Broker CPU Request 1000m Kafka broker Pods
Broker CPU Limit 2000m Kafka broker Pods
Broker Memory Request and Limit 2Gi Kafka broker Pods
Controller CPU Request 500m KRaft controller Pods
Controller CPU Limit 1000m KRaft controller Pods
Controller Memory Request and Limit 1536Mi KRaft controller Pods
Table 6. Cloudera Surveyor engine pod resource properties
Property Default Applies to
Surveyor CPU Request 500m Cloudera Surveyor Pod
Surveyor CPU Limit 2000m Cloudera Surveyor Pod
Surveyor Memory Request and Limit 2Gi Cloudera Surveyor Pod