Batch tuning in Redpanda can dramatically improve performance by optimizing effective batch sizes. Using Prometheus metrics and Grafana visualizations, you can monitor batch sizes at the topic level and identify bottlenecks. Target at least 4KB effective batch sizes for high-volume workloads, ideally 16KB or higher, to maximize NVMe storage efficiency and reduce CPU utilization. Key tuning parameters include producer linger.ms and batch.size configurations. Write caching can help when client-side tuning isn't possible by allowing brokers to acknowledge messages in memory and flush larger blocks to disk. A real-world case study demonstrates how proper batch tuning reduced CPU usage by 50%, improved latencies by 2-10x across all percentiles, and cut network bandwidth requirements in half, enabling cluster consolidation and significant cost savings.

13m read timeFrom redpanda.com
Post cover image
Table of contents
Observability and batches #The impact of tuning #What's a good effective batch size? #But what about write caching? #A real-world example #What’s next? #Conclusion #

Sort: