TSDB: 1 year in
Ganesh Vernekar
November, 2019
About me
TSDB: 1 year in
| 2
Ganesh Vernekar
Software Engineer, Grafana Labs
Prometheus GSoC’18 student
Prometheus Member, TSDB Maintainer
Graduated this year from IIT Hyderabad
@_codesome ganesh@grafana.com
What is TSDB (Time Series DataBase)?
TSDB: 1 year in
| 3
Statistics
TSDB: 1 year in
| 4
Some selected features/enhancements
TSDB: 1 year in
| 5
Backfilling
TSDB: 1 year in
| 6
Backfilling
TSDB: 1 year in
| 7
WAL compression
TSDB: 1 year in
| 8
WAL read optimizations
TSDB: 1 year in
| 9
WAL read optimizations
TSDB: 1 year in
| 10
WAL read optimizations
TSDB: 1 year in
| 11
Allocation/memory optimization for compaction
TSDB: 1 year in
| 12
Allocation/memory optimization for compaction
TSDB: 1 year in
35% allocations
19% allocations
| 13
Allocation/memory optimization for compaction
TSDB: 1 year in
6.5% allocations
(Don’t have the numbers)
| 14
Various optimizations for the queries
TSDB: 1 year in
| 15
Various optimizations for the queries
TSDB: 1 year in
{foo=~”bar|baz”} => {foo=”bar”} or {foo=”baz”}
Make Grafana dashboard queries faster
| 16
Various optimizations for the queries
TSDB: 1 year in
| 17
Reuse Chunk Iterators
TSDB: 1 year in
| 18
Reuse Chunk Iterators
TSDB: 1 year in
| 19
Reuse Chunk Iterators
TSDB: 1 year in
| 20
Analyse churn
TSDB: 1 year in
| 21
Read Only TSDB
TSDB: 1 year in
| 22
Upcoming features/enhancements
TSDB: 1 year in
| 23
Lifting index size limit
TSDB: 1 year in
| 24
Lifting index size limit
TSDB: 1 year in
| 25
64 bit postings
TSDB: 1 year in
GSoC 2019 work by Alec Wang (GH: naivewong)
| 26
011001 | 011010 | 101100 | 101101 | 101110 | 101111 |
0110 | 01 | 10 |
1011 | 00 | 01 | 10 | 11 |
Isolation
TSDB: 1 year in
| 27
Improved checkpointing of WAL
TSDB: 1 year in
Potential speedup of WAL replay by a big factor
| 28
Thanks! Questions?
@_codesome