KIP-20 — Enable log preallocate to improve consume performance under windows and some old Linux file system
Accepted Broker
KIP-20 adds a `log.preallocate` broker config that pre-allocates log segment files at creation time (using the full `log.segment.bytes` size) rather than growing them incrementally via appends. This reduces filesystem fragmentation on Windows and older Linux filesystems (ext2/ext3), improving consume performance for sequential reads.
Details
| Author | Honghai Chen |
| Status | Accepted |
| JIRA | KAFKA-1646 |
| Wiki | View on Apache Wiki |
| Created | 2015-04-21 |
| Last Modified | 2015-07-18 |
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.