Klaus Post 5f41f6043d Avoid synchronizing usage writes (#11560)
If the periodic `case <-t.C:` save gets held up for a long time it will end up
synchronize all disk writes for saving the caches.

We add jitter to per set writes so they don't sync up and don't hold a
lock for the write, since it isn't needed anyway.

If an outage prevents writes for a long while we also add individual
waits for each disk in case there was a queue.

Furthermore limit the number of buffers kept to 2GiB, since this could get
huge in large clusters. This will not act as a hard limit but should be enough
for normal operation.
2021-02-18 21:34:18 -08:00
..
2021-02-08 22:29:10 -08:00
2021-02-08 22:29:10 -08:00
2021-02-08 22:29:10 -08:00
2020-06-12 20:04:01 -07:00
2020-06-12 20:04:01 -07:00
2021-02-08 23:00:48 -08:00
2020-01-31 08:29:22 +05:30