> ## Documentation Index
> Fetch the complete documentation index at: https://sariva.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# EKS sizing for CFK/CP

> What your EKS cluster needs to run self-hosted Confluent Platform — node floors, topology patterns, and where to size for real.

Confluent Platform (Kafka, KRaft, Schema Registry) runs **in your EKS cluster**, managed by the CFK operator — Sariva does not run it. You size and build the cluster; Sariva emits the Confluent Platform manifests onto it correctly and checks that they fit before raising a deployment PR.

> [!NOTE]
>
> **Sizing and topology are your homework — done with Confluent.** Throughput, node count, instance types, and AZ layout come from the [Confluent Sizing Calculator](https://eventsizer.io) and Confluent's deployment-planning guide. Sariva does **not** compute capacity; it emits CP onto the cluster you built and validates the fit.

## Who owns what

| You own (with Confluent) | Sariva owns |
| - | - |
| Throughput / capacity sizing | Component CPU/memory requests & limits, JVM heap |
| Node count, instance type, AZ topology | Placement onto your reserved nodes/zones |
| Storage class, retention, disk size | The fit-check — does CP fit this cluster? |
| The EKS cluster itself | Emit + PR only when it fits; otherwise report the gap |

## Hard floors

These are minimums regardless of throughput:

* [ ] **Kafka brokers ≥ 3** — one or two is not supported, even for dev
* [ ] **KRaft controllers: 3** (odd, for quorum)
* [ ] **One broker per node** — a node loss should drop one broker, not two. Sariva enforces this with `oneReplicaPerNode`, so your **broker count can't exceed your worker-node count**
* [ ] **Each node ≥ 2–4 vCPU and 7–16 GiB RAM** (Confluent's node floor)

A 3-broker cluster therefore needs **at least 3 worker nodes** that can each hold a broker plus a controller.

## Just trying it out (POC footprint)

To validate Sariva end-to-end without sizing for load, the **full CP component set fits on 3 nodes of \~2 vCPU / 8 GiB** (e.g. `t3.large`): 3 brokers + 3 KRaft controllers + Schema Registry + Connect (1 replica) + REST Proxy (1 replica), one broker + one controller per node — validated live with ACL authorization enabled. This is a *try-it* footprint, not a workload sizing — see below for real deployments.

ⓘINFO

**These 3 nodes are deliberately full.** Each also carries a share of the CFK operator and (when Sariva shares the cluster) the Sariva platform pod, and Sariva's POC resource profile is sized so exactly this set packs. Scheduling is by CPU *requests*, not live usage — adding your own workloads to these nodes can leave a broker `Pending` even though the nodes look idle. Run anything else on separate nodes, or size up.

## Per environment — what changes

| Environment | Nodes | Topology | Sizing source |
| - | - | - | - |
| **POC / trial** | 3× \~2 vCPU / 8 GiB, single AZ | Node spread only | The footprint above — no sizing work |
| **dev** | The POC shape works; add nodes if other workloads share the cluster | Single-AZ acceptable | Directional — your call |
| **uat / prod** | From your throughput + retention numbers | **Multi-AZ (3 AZ)**, RF/min-ISR to survive an AZ loss, `WaitForFirstConsumer` storage (below) | **[Confluent Sizing Calculator](https://eventsizer.io)** + Confluent's planning guide — bring the numbers; Sariva emits them and fit-checks before opening a PR |

## Topology patterns

Orientation only — for production topology design, follow [Confluent's multi-AZ guide](https://docs.confluent.io/operator/current/co-multi-az.html).

| Pattern | When | What Sariva emits |
| - | - | - |
| **Single-AZ** | dev / trials; cost over resilience | node spread (`oneReplicaPerNode`) |
| **Multi-AZ (3 AZ)** | uat / prod; survives one AZ loss | rack awareness + even per-AZ spread, onto your zones |
| **Multi-region** | DR / geo | Confluent multi-region clusters — out of scope here |

For multi-AZ, set **replication factor and min-ISR so the cluster keeps running with one AZ down** — i.e. enough broker capacity to lose a zone.

## Storage — the multi-AZ rule

> [!WARNING]
>
> **Multi-AZ requires a `WaitForFirstConsumer` storage class.** EBS volumes are pinned to one AZ and can't move. With the default *immediate-bind* StorageClass, a volume can be provisioned in a different AZ than its pod, and the pod gets stuck. Your StorageClass must set `volumeBindingMode: WaitForFirstConsumer` so the volume is created in the pod's AZ after scheduling.

This extends the default-StorageClass requirement on the [Amazon EKS](https://sariva.mintlify.site/prerequisites/aws/eks.md) page. Confirm the binding mode:

```bash theme={null}
kubectl get storageclass -o custom-columns=NAME:.metadata.name,BINDINGMODE:.volumeBindingMode
# → for multi-AZ, your default class should read WaitForFirstConsumer
```

When an AZ fails, its pods **and** their volumes go `Pending` and won't auto-recover into another AZ — so RF/ISR (above) is what keeps you serving.

## Size for real

For anything beyond a trial, size with Confluent:

* **[Confluent Sizing Calculator](https://eventsizer.io)** — brokers, CPU/memory, storage for your throughput and retention
* **Confluent's "Plan for CP Deployment" guide** and the [CFK CPU/Memory docs](https://docs.confluent.io/operator/current/co-resources.html)

Bring those numbers to deployment; Sariva emits them and confirms they fit your nodes before opening a PR.

## Continue the deployment path

This page belongs to the **AWS EKS + Confluent Platform (CFK)** path. (The Previous/Next links at the very bottom follow sidebar order, not your path — use these instead.)

> [card] [Next: GitHub repository and Sariva token](https://sariva.mintlify.site/prerequisites/github.md)
>
> Create or select the GitOps repository Sariva opens pull requests into.

> [card] [Back: AWS EKS + Confluent Platform (CFK)](https://sariva.mintlify.site/deploy/aws-eks-cfk.md)
>
> Return to the CFK path map.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.