Skip to content
/
Suscribirse Subscribe

Detrás del telón hay sistemas, no magia. Arquitectura de software, IA y computación de bajo nivel para las trincheras de producción.

Behind the curtain there are systems, not magic. Software architecture, AI, and systems engineering from the production trenches.

🇪🇸 Cambiar a la versión en español: Calculadora de Tamaño y Particiones Kafka

Calculate exact storage retention (TB with 20% headroom), partition count, total cluster network bandwidth (MB/s), and minimum broker count for Apache Kafka or Redpanda clusters cleanly inside your browser.

Total Cluster Disk (+20% buffer)4.60 TB
Aggregate Cluster Network63.00 MB/s
Recommended Topic Partitions12 partitions
Minimum Brokers Needed3 brokers
With RF = 3, deploy at least 3 brokers and keep disk below 80% to preserve compaction headroom.

Apache Kafka & Redpanda Sizing Formula

Following storage and partitioning mechanics documented in the official Apache Kafka documentation, cluster disk footprint and east-west replication bandwidth scale with Replication Factor (RF) and active consumer fan-out:

Compressed Daily Ingest (GB/day) = (Events/s × Payload_KB × Compression_Ratio / 1,024) × 86.4

Cluster Disk (TB) = (Daily_GB × Retention_Days × RF / 1,000) × 1.20  |  Total Bandwidth (MB/s) = Ingest_MB/s × (1 + (RF - 1) + Consumer_Groups)

Compression & Partitioning Trade-Off Table

Compression CodecTypical JSON/Avro RatioBroker CPU CostBest-Fit Production Profile
ZSTD0.30× – 0.40×ModerateDefault sweet spot for shrinking NVMe disk & cross-AZ egress
LZ40.45× – 0.55×Very lowStrict P99 latency targets on CPU-constrained producers
Snappy / None0.55× – 1.00×MinimalAlready compressed binary payloads (Protobuf / Parquet)

Frequently Asked Questions

Why reserve 20% disk headroom on Kafka brokers?

Log compaction, unscheduled traffic spikes, segment rollover delays, and partition reassignments require free disk capacity; hitting 100% full halts the broker immediately.

How many partitions should a production Kafka topic start with?

Match your peak parallel consumers: assuming ~10 MB/s per partition consumer thread, scale up partitions cleanly in multiples of broker count (e.g., 6, 12, 24) without spawning thousands of idle partitions per cluster.

Technical note: All sizing runs 100% client-side. Factor inter-AZ cloud egress fees separately when replication (RF - 1) and consumer groups cross cloud availability zones.
Suscribirse Subscribe