prometheus/storage
Tom Wilkie b93bafeee1 Various fixes to locking & shutdown for WAL-based remote write.
- Remove datarace in the exported highest scrape timestamp.
- Backoff on enqueue should be per-sample - reset the result for each sample.
- Remove diffKeys, unused ctx and cancelfunc in WALWatcher, 'name' from writeTo interface, and pass it to constructor.
- Reorder functions in WALWatcher depth-first according to call graph.
- Fix vendor/modules.txt.
- Split out the various timer periods into consts at the top of the file.
- Move w.currentSegmentMetric.Set close to where we set the currentSegment.
- Combine r.Next() and isClosed(w.quit) into a single loop.
- Unnest some ifs in WALWatcher.watch, propagate erros in decodeRecord, add some new lines to make it easier to read.
- Reorganise checkpoint handling to reduce nesting and make it easier to follow.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2019-02-12 11:39:13 +00:00
..
remote Various fixes to locking & shutdown for WAL-based remote write. 2019-02-12 11:39:13 +00:00
tsdb Add flag for size based retention (#5109) 2019-01-18 19:18:36 +05:30
buffer_test.go Use a fake SeriesIterator (that generates samples on the fly instead of using a slice) for BufferedSeriesIterator, to reduce the variance of benchmark results due to memory pressure. (#4847) 2018-12-18 11:22:33 +00:00
buffer.go Minor optimization for BufferedSeriesIterator: actually drop the samples falling outside of the new delta from the underlying sampleRing, when ReduceDelta is called. (#4849) 2018-12-18 11:25:45 +00:00
fanout_test.go Return warnings on a remote read fail (#4832) 2018-11-30 14:27:12 +00:00
fanout.go Move err to be the last return value from storage.Select. (#5054) 2019-01-02 11:10:13 +00:00
interface.go Move err to be the last return value from storage.Select. (#5054) 2019-01-02 11:10:13 +00:00
noop.go Move err to be the last return value from storage.Select. (#5054) 2019-01-02 11:10:13 +00:00