max.connections — Kafka Broker Configuration
The maximum number of connections we allow in the broker at any time. This limit is applied in addition to any per-ip limits configured using max.
Description
The maximum number of connections we allow in the broker at any time. This limit is applied in addition to any per-ip limits configured using max.connections.per.ip. Listener-level limits may also be configured by prefixing the config name with the listener prefix, for example, listener.name.internal.max.connections.per.ip. Broker-wide limit should be configured based on broker capacity while listener limits should be configured based on application requirements. New connections are blocked if either the listener or broker limit is reached. Connections on the inter-broker listener are permitted even if broker-wide limit is reached. The least recently used connection on another listener will be closed in this case.
Default Values by Kafka Version
| Kafka Version | Default Value |
|---|---|
| 2.3 | 2147483647 |
| 2.4 | 2147483647 |
| 2.5 | 2147483647 |
| 2.6 | 2147483647 |
| 2.7 | 2147483647 |
| 2.8 | 2147483647 |
| 3.0 | 2147483647 |
| 3.1 | 2147483647 |
| 3.2 | 2147483647 |
| 3.3 | 2147483647 |
| 3.4 | 2147483647 |
| 3.5 | 2147483647 |
| 3.6 | 2147483647 |
| 3.7 | 2147483647 |
| 3.8 | 2147483647 |
| 3.9 | 2147483647 |
| 4.0 | 2147483647 |
| 4.1 | 2147483647 |
| 4.2 | 2147483647 |