Compact small files
Difficulty 3 of 5
Streams write 2,000 batches/s of 64 KB into the events store. The daily report reads 20 GB and now times out. Bring the report p99 under 20 s with under 1 percent errors, and keep ingest errors under 0.1 percent. Use at most 3 edits.
09:05 The daily report times out after 60 s. Each run opens 312,500 files. Ingest writes queue behind it.
5 MB/s · logs kept on the host · disk full in 33 minutes
Goals and limits
- p99 latency (Daily)
- under 20 s
- Error rate (Daily)
- under 1%
- Error rate (Ingest)
- under 0.1%
- Monthly cost
- under 100 USD/mo
- Edit limit
- 3
- Traffic
- 0 req/s
Concepts
How players did
Player results load from the server.