Apache Kafka announced Kafka 4.4.0 on October 22, 2026. That release date tells you which version this guide covers; it does not determine how much disk your cluster needs.
Estimate each topic from measured writes and its retention policy, apply its replication factor, then total the replicas actually assigned to each broker. Add space for observed peaks, log cleanup, and rebuild or migration work before choosing disks. A cluster-wide average is not a broker capacity check.
This is for Kafka DBAs estimating disk from retention and replica placement.
It also helps platform teams planning broker expansion, rebuilds, or log-directory moves.
SaaS technical leads can use the same method to turn workload records into a storage purchase plan.
Last updated November 19, 2026. Version and configuration details were checked against the Kafka 4.4.0 release announcement and Kafka’s 4.4 configuration and operations documentation.
Start with the data each topic retains
Kafka disk planning begins with what the brokers store, not the size of the messages your application sends in a single day. For each topic, use measured incoming bytes over a representative period and the retention policy that applies to that topic. If traffic changes by hour, day, customer, or event type, keep those patterns visible instead of blending them into a single cluster-wide average.
For a topic retained by time, a first-pass logical-data estimate is:
logical bytes = measured write bytes per second × retention time in seconds
For variable traffic, calculate the sum of the measured bytes across the selected retention window instead. This avoids assuming a steady rate when production traffic has daily peaks or bursts.
Kafka’s time- and size-based retention settings govern when log segments are eligible for deletion. They do not mean every record is erased as soon as its age or size crosses a threshold. Review the topic’s actual settings, including any topic-level overrides, in the Kafka 4.4 topic configuration reference. For capacity planning, use the policy in effect for each topic, not just a default you expect to apply.
Keep the following quantities separate in your worksheet:
- Measured input: bytes written by producers, grouped by topic and time interval.
- Retention window: the configured time or size policy that determines what remains available.
- On-disk observation: the broker’s actual log-directory usage for the same topic and period.
- Compression effect: a value measured from your own workload, not a generic compression assumption.
If the workload is already running, compare producer-side byte counts with broker log-directory growth over the same interval. If it is a new workload, use representative payloads and a realistic producer test, then record the input and resulting disk use. Do not shrink the purchase estimate based on a compression ratio borrowed from a different payload mix.
Which retention scenario should drive the estimate?
The input needed depends on how a topic behaves. A topic retained by time, one retained by size, and a compacted topic do not have the same storage profile. The table is a planning aid: it identifies what to measure, but it does not supply a universal capacity multiplier.
| Topic scenario | Estimate from | Check before using the estimate |
|---|---|---|
| Time-based deletion | Measured bytes over the configured retention window | Confirm the effective topic and broker settings; allow for segments that are not yet eligible for deletion |
| Size-based deletion | The configured size limit and observed topic growth | Confirm whether the limit is per partition or topic and inspect the effective configuration |
| Compacted topic | Actual log-directory usage under representative key updates | Include the current log state, cleanup progress, and tombstones; do not treat compacted size as an immediate floor |
| Tiered storage | Local retention separately from remote retention | Verify that remote storage is actually configured and that local-retention settings match the intended design |
For time-based deletion, use measured retained data as the starting point, then validate it against actual segment and directory usage. The Kafka design documentation explains how topics are divided into partitions and logs. Because retention acts on log segments, a spreadsheet that models individual record expiry may predict faster disk recovery than the broker can deliver.
For a compacted topic, compaction is not the same as instantly removing every older record from disk. Records with the same key can be reduced over cleanup cycles, and tombstones also have a retention behavior. Check usage while cleanup is taking place, not only after a quiet period. If disk purchase depends on compaction savings, measure the result with representative keys, update rates, and cleanup activity.
How do you calculate disk from retention time?
For each topic with time-based retention, calculate a logical retained-data estimate from the measured write history and its configured retention window. When the incoming rate is stable enough for a rate-based estimate, multiply the measured rate by the retention duration. When it is not stable, sum the observed bytes across the actual window. This answers the common capacity question without treating a short average sample as a reliable forecast.
Use a worksheet with one row per topic and fields such as:
- Topic name and owning service.
- Measured incoming bytes, with the observation period recorded.
- Effective retention setting and whether it is time-based, size-based, or compacted.
- Configured replication factor.
- Partition count and replica placement by broker.
- Measured on-disk usage and the date of that observation.
- Any documented peak, cleanup, or migration condition that affects local space.
The first estimate is a starting point, not the capacity to order. It describes the retained data before accounting for where copies sit, whether compression changes the measured result, and whether the cluster has room to perform maintenance. Keep the raw logical-data estimate visible so that later reviews can explain exactly which factor changed the broker total.
Replication factor and broker-level disk use
Kafka stores replicas of partitions on brokers. A topic’s replication factor therefore represents multiple stored copies, not one shared copy whose data is divided among all brokers. If a topic has replication factor R, its cluster-wide replica storage is based on the data for R copies, subject to real differences in log state, compression, and cleanup. Kafka’s design documentation describes partition replication and broker assignment.
That relationship is useful for estimating the cluster total, but it is not enough to size a broker. To calculate one broker’s requirement, list every partition replica assigned to it and total that replica’s measured or estimated storage. A broker that holds a larger share of large or fast-growing partitions can run short of space even when the cluster-wide total divided by the broker count appears safe.
Replication factor estimates copies across the cluster; replica placement determines which disk has to hold each copy.
For each broker, maintain a separate total:
broker data estimate = sum of retained data for every replica assigned to that broker
Do not assume all brokers receive an equal share unless the actual assignment confirms it. Check partition placement after planned reassignment as well as before it. A rebalance can change which brokers carry the larger replica sets, and the new placement—not the old cluster average—must fit the available local capacity.
Replication also does not replace a backup. It can help keep partition copies available during certain broker failures, but it does not provide an independent, offline recovery point against deletion, corruption, or an operational mistake. Keep a separate backup and recovery plan, and test restoring from it.
Why can a broker fill when the cluster has free disk?
A cluster total can hide an uneven distribution. A single broker may have more replicas of a busy topic, larger partitions, or a different mix of retained data than its peers. Capacity checks should therefore use the replica assignment and the local filesystem’s usable space for each broker.
Consumer lag can also change the amount of data that remains available. If the topic’s retention policy is time-based and producers continue writing while consumers fall behind, the broker still has to retain data according to the configured policy. Model the observed lag condition together with write history and retention; do not assume that consumers will always catch up before the retained data grows.
A third source of risk is operational activity. Reassigning replicas, rebuilding a broker, or moving log directories can require temporary room while data is copied or old files are still present. A forecast that includes only the steady-state log size may leave no space for the operation intended to restore balance.
Use the Kafka basic operations documentation when planning reassignment or other broker work. Record the affected replicas and the space required during the operation, then check the destination broker’s available filesystem capacity. A cluster-wide free-space figure cannot tell you whether the specific destination has enough room.
Step-by-step: turn broker estimates into a purchase decision
First, collect workload evidence. Export or otherwise record producer write volume by topic over a period that includes the workload patterns relevant to the service. Preserve peak intervals rather than reporting only a single average.
Next, confirm effective retention. Inspect the actual topic configuration and any broker-level settings that influence it. Identify which topics use time-based deletion, size-based deletion, or compaction. Kafka’s 4.4 topic configuration reference is the source for the relevant setting definitions; the deployed configuration remains the input to your estimate.
Then, calculate retained data per topic. Apply the measured write history to the configured retention policy. Use your own observed on-disk measurements to account for compression and segment behavior. If the workload is not yet live, label the estimate as a test-based projection and keep the assumptions alongside it.
After that, expand the estimate to replicas. Apply each topic’s replication factor, then use the actual partition replica assignment to allocate the resulting data to brokers. Check the largest broker total individually. Do not replace this step with cluster storage divided by broker count.
Next, add operating conditions. Include measured peak growth, consumer-lag cases, cleanup delays, and the temporary space required for reassignment, rebuilding, or log-directory migration. Derive this allowance from service records and the planned operation. There is no universal spare-space percentage that can substitute for those measurements.
Finally, compare each broker’s peak requirement with usable local capacity. Use the capacity available to Kafka after accounting for the operating system, other local services, filesystem overhead, and any chosen redundancy layout. If the proposed layout depends on a mirror or another local copy, count that layout explicitly; do not treat a label such as “raw disk capacity” as equivalent to space available for Kafka logs.
Use these conditions to choose the next action:
- If every broker’s measured peak requirement, including the planned operation, fits its usable local space, then document the assumptions and schedule a capacity review when workload or retention changes.
- If the cluster total fits but one broker does not, then review partition placement and reassignment options before buying based on the cluster average.
- If the estimate relies on an unmeasured compression saving or an assumed cleanup rate, then measure a representative workload or plan against the less favorable observed case.
- If remote tiered storage is configured and its local-retention policy is verified, then estimate local and remote capacity separately; otherwise size local disks for the data that remains on the brokers.
How much local disk remains with Kafka 4.4.0 tiered storage?
Tiered storage does not automatically mean that local broker disks can be sized for only a small cache. First confirm that the cluster actually has remote storage configured and enabled. Then inspect the topic and broker settings that determine how much data remains locally and how the broader retention policy applies.
Kafka’s 4.4 tiered storage documentation describes the feature and its configuration. Use it to distinguish local retention from remote retention in the design. The local disk estimate still needs its own calculation from the configured local-retention behavior and the measured rate of data becoming available locally or remotely. Do not subtract remote data from local capacity until the actual configuration and its behavior have been verified.
This is also why a statement such as “tiered storage is enabled” is not enough for a purchasing decision. Record the relevant settings, the retention target at each storage layer, and the observed local directory usage. Then repeat the per-broker replica-placement check. The remote copy can change the local-retention plan, but it does not remove the need to understand local logs, segment cleanup, and operational space.
If remote storage is not configured, treat the topic’s retained data as a local-storage requirement. Do not include an assumed remote tier in the capacity estimate or budget until the cluster has a defined and tested remote-storage design.
Choose storage only after the broker checks
A defensible storage purchase follows the broker-level worksheet, not a round number selected from the cluster total. Before deciding, confirm that the estimate includes each topic’s effective retention, the observed compression behavior, replica placement, busy periods, cleanup, and any temporary data needed during maintenance. Then compare the largest broker requirement with the usable local capacity of the candidate configuration.
RunnerAMD’s current pricing and available server options are where you should verify the NVMe choices currently offered. Compare those options with your measured per-broker peak requirement; do not treat an example estimate or nominal disk total as confirmation that a particular layout will fit. For a broader view of the workloads that may influence a dedicated-server decision, review server use cases.
A shared cloud instance can be convenient when workloads are short-lived or need rapid elasticity, but shared CPU and storage behavior, service-specific disk limits, and charges tied to provisioned performance can complicate a steady Kafka workload’s budget. A dedicated physical server can make sense when you need sustained, predictable local resources and can operate Kafka, storage, and recovery yourself. It is not the right fit if you only need a brief test, a very light workload, or hands-off managed operations.
Kafka replicas are not off-site backups, and buying more local disk does not by itself provide recovery. Keep backups outside the broker’s failure domain, test restore procedures, and recheck the estimate whenever write volume, retention, partition placement, or tiered-storage settings change. Once the per-broker calculation is complete, compare it with RunnerAMD’s currently listed NVMe options and proceed only when the actual available capacity matches the workload and operating plan.
Further reading
Size Your Kafka Brokers on Dedicated NVMe Servers
Choose a RunnerAMD dedicated server with an AMD EPYC 7543P processor, 32 cores, and 64 threads for your self-hosted Kafka workloads.
