prometheus/storage
beorn7 f338d791d2 storage: Several optimizations of checkpointing
- checkpointSeriesMapAndHeads accepts a context now to allow
  cancelling.

- If a shutdown is initiated, cancel the ongoing checkpoint. (We will
  create a final checkpoint anyway.)

- Always wait for at least as long as the last checkpoint took before
  starting the next checkpoint (to cap the time spending checkpointing
  at 50%).

- If an error has occurred during checkpointing, don't bother to sync
  the write.

- Make sure the temporary checkpoint file is deleted, even if an error
  has occurred.

- Clean up the checkpoint loop a bit. (The concurrent Timer.Reset(0)
  call might have cause a race.)
2017-04-07 13:10:12 +02:00
..
fanin Small fixes. (#2578) 2017-04-05 14:24:22 +01:00
local storage: Several optimizations of checkpointing 2017-04-07 13:10:12 +02:00
metric storage: improve index lookups 2016-07-20 17:35:53 +02:00
remote Remote writes: retry on recoverable errors. (#2552) 2017-04-07 00:15:41 +02:00
storage.go Fix deadlock, structure target logging 2016-02-03 10:39:34 +01:00