Building a Resilient Log Aggregation Pipeline Using...
summary
Pipeline combines Elasticsearch and Kafka with concrete tuning: use distinct client/data/ingest/master nodes, run at least three master-eligible nodes, and prefer size-based indices sized to about 5–10 GB per shard with rollover to avoid heavy merges. Increasing refresh from 1s (≈2,000 logs/s baseline) to 25s yields ~25% more throughput and to 30s yields ~75%. Kafka scales by adding partitions and keeping consumer count = partitions. Log JSON at source and use application-level acknowledgments (HTTP/RELP) to avoid lost data.
AI-written summary · about
chapters (13)
- 0:00Introduction to resilient log pipeline
- 1:58Common log aggregation architectures
- 3:24Elasticsearch node types explained
- 5:30Master nodes and cluster stability
- 6:56Indexing strategies for time-series data
- 8:18Size-based indexing with rollover
- 10:25Optimizing Elasticsearch throughput
- 13:35Hot and cold data node architecture
- 17:47Hardware requirements per node type
- 19:34Centralized buffering with Kafka
- 23:50Kafka scaling and fault tolerance
- 27:02Log shipping buffer and protocol choices
- 29:10Operating system optimizations for logs
