Loki + S3: Why It’s Slow and How to Fix It

https://medium.com/me/stats/post/220acab20d13

What the Numbers Looked Like in the End

We made all these changes in a single session. Here’s the before and after:

| What we measured             | Before      | After                       |
|------------------------------|-------------|-----------------------------|
| Chunk cache hit rate         | 7.1%        | 39% → 60%+ (still warming)  |
| Idle chunk flushes           | 55%         | 0%                          |
| Properly-sized chunk flushes | 7%          | 47%                         |
| S3 GETs (since restart)      | 1,298,510   | 176,352 — 86% reduction     |
| Max query lookback           | 30 days     | Unlimited                   |
| Log loss during Loki restart | Yes         | Zero — disk buffer          |
| Context cancellation errors  | Frequent    | Gone                        |

Hi @uttamreetesh,

The Medium link leads to a 404 - can you re-check the url please?