socket.receive.buffer.bytes — Kafka Broker Configuration
The SO_RCVBUF buffer of the socket server sockets. If the value is -1, the OS default will be used.
Description
The SO_RCVBUF buffer of the socket server sockets. If the value is -1, the OS default will be used.
Default Values by Kafka Version
| Kafka Version | Default Value |
|---|---|
| 0.8.0 | 100 * 1024 |
| 0.8.1 | 100 * 1024 |
| 0.8.2 | 100 * 1024 |
| 0.9.0 | 102400 |
| 0.10.0 | 102400 |
| 0.10.1 | 102400 |
| 0.10.2 | 102400 |
| 0.11.0 | 102400 |
| 1.0 | 102400 |
| 1.1 | 102400 |
| 2.0 | 102400 |
| 2.1 | 102400 |
| 2.2 | 102400 |
| 2.3 | 102400 |
| 2.4 | 102400 |
| 2.5 | 102400 |
| 2.6 | 102400 (100 kibibytes) |
| 2.7 | 102400 (100 kibibytes) |
| 2.8 | 102400 (100 kibibytes) |
| 3.0 | 102400 (100 kibibytes) |
| 3.1 | 102400 (100 kibibytes) |
| 3.2 | 102400 (100 kibibytes) |
| 3.3 | 102400 (100 kibibytes) |
| 3.4 | 102400 (100 kibibytes) |
| 3.5 | 102400 (100 kibibytes) |
| 3.6 | 102400 (100 kibibytes) |
| 3.7 | 102400 (100 kibibytes) |
| 3.8 | 102400 (100 kibibytes) |
| 3.9 | 102400 (100 kibibytes) |
| 4.0 | 102400 (100 kibibytes) |
| 4.1 | 102400 (100 kibibytes) |
| 4.2 | 102400 (100 kibibytes) |
Tuning Recommendation
| Profile | Recommended | Why |
|---|---|---|
| broker / throughput | 1048576 | A larger receive buffer allows the kernel to buffer more incoming ProduceRequest bytes before the broker reads them, preventing TCP flow control back-pressure on producers during brief IO thread stalls. |
| broker / latency | 65536 | Smaller receive buffer ensures requests are handed to the I/O thread pool faster instead of accumulating in the kernel buffer. |
Related Configs
socket.send.buffer.bytes · num.network.threads
Manage Kafka configs across all your clusters with Conduktor Console — view, compare, and update configurations in one place.