max.incremental.fetch.session.cache.slots — Kafka Broker Configuration
The maximum number of total incremental fetch sessions that we will maintain. FetchSessionCache is sharded into 8 shards and the limit is equally divided among all shards
Description
The maximum number of total incremental fetch sessions that we will maintain. FetchSessionCache is sharded into 8 shards and the limit is equally divided among all shards. Sessions are allocated to each shard in round-robin. Only entries within a shard are considered eligible for eviction.
Default Values by Kafka Version
| Component | Kafka version line | Documented default |
|---|---|---|
| Broker | 1.1 | 1000 |
| Broker | 2.0 | 1000 |
| Broker | 2.1 | 1000 |
| Broker | 2.2 | 1000 |
| Broker | 2.3 | 1000 |
| Broker | 2.4 | 1000 |
| Broker | 2.5 | 1000 |
| Broker | 2.6 | 1000 |
| Broker | 2.7 | 1000 |
| Broker | 2.8 | 1000 |
| Broker | 3.0 | 1000 |
| Broker | 3.1 | 1000 |
| Broker | 3.2 | 1000 |
| Broker | 3.3 | 1000 |
| Broker | 3.4 | 1000 |
| Broker | 3.5 | 1000 |
| Broker | 3.6 | 1000 |
| Broker | 3.7 | 1000 |
| Broker | 3.8 | 1000 |
| Broker | 3.9 | 1000 |
| Broker | 4.0 | 1000 |
| Broker | 4.1 | 1000 |
| Broker | 4.2 | 1000 |
| Broker | 4.3 | 1000 |
| Broker | 4.4 | 1000 |
Tuning Recommendation
Workload-dependent proposals, not benchmarked defaults. Review the versioned Config Advisor before applying.
| Profile | Proposal | Rationale and tradeoff |
|---|---|---|
| broker / throughput | 2000 | Sizes the incremental fetch session cache used to retain fetch context. Tradeoff: More slots require memory. Extra capacity is useful only if session churn or eviction is a problem. Reference · 2026-10-27 |
Manage Kafka configs across all your clusters with Conduktor Console — view, compare, and update configurations in one place.