influxdb/tsdb
Edd Robinson 55e9ed689f Allow the tsm1.Cache to be snapshotted due to age
This commit adds a new Cache option, via the
`tsm1.CacheConfig.SnapshotAgeDuration` field, which controls the maximum
age the cache can reach before it is snapshotted to a TSM file.

The default value for this option is `0`, which means that the cache
will never be snapshotted based only on age. Setting this value to, for
example, 10 seconds, would result in the cache snapshotting every 10
seconds.

Snapshotting the cache more frequently can provide better durability
guarantees in some circumstances, though more, smaller TSM files will
lead to more work needed to compact them down to larger, more dense
files.

When using InfluxDB with a WAL there isn't really a strong reason to
alter `tsm1.CacheConfig.SnapshotAgeDuration` from `0`.
2019-03-25 11:44:01 +00:00
..
cursors chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
internal Integrate scanned values statistics tracking. 2018-11-28 15:32:06 -07:00
testdata Update tsdb package from OSS 2018-10-01 12:08:37 +01:00
tsi1 use tracing.StartSpanFromContext 2019-03-07 12:12:31 -07:00
tsm1 Allow the tsm1.Cache to be snapshotted due to age 2019-03-25 11:44:01 +00:00
value refactor: move value package up to tsdb 2019-02-04 10:32:52 -07:00
config.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
cursor.go Fix typo 2019-01-23 13:33:09 +01:00
errors.go tsdb: cleanup shard errors 2019-02-18 21:25:30 +08:00
explode.go ddress PR feedback 2019-03-07 09:56:07 +00:00
explode_test.go ExplodePoints now complies with new keys 2019-03-07 09:56:07 +00:00
index.go storage: fix problems with keeping resources alive 2019-02-28 10:22:01 -07:00
index_test.go feat(influxd): Tracing refactor (#12318) 2019-03-04 11:48:11 -08:00
meta.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
meta_test.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
metrics.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
metrics_test.go feat(influxd): Tracing refactor (#12318) 2019-03-04 11:48:11 -08:00
series_collection.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
series_collection_test.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
series_file.go storage: add SeriesOffsetSize constant 2019-03-12 10:51:22 +08:00
series_file_test.go feat(influxd): Tracing refactor (#12318) 2019-03-04 11:48:11 -08:00
series_id.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
series_id_test.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
series_index.go storage: pr review changes 2019-03-12 22:15:28 +08:00
series_index_test.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
series_partition.go storage: add SeriesOffsetSize constant 2019-03-12 10:51:22 +08:00
series_segment.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
series_segment_test.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
series_set.go Remove copy-on-write when caching bitmaps 2019-01-25 13:38:22 +00:00
series_set_test.go Remove copy-on-write when caching bitmaps 2019-01-25 13:38:22 +00:00