Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Versioned WAL #638

Merged
merged 22 commits into from
Apr 12, 2021
Merged

Versioned WAL #638

merged 22 commits into from
Apr 12, 2021

Conversation

joe-elliott
Copy link
Member

What this PR does:
Reuses all of the existing versioned code to enabled versioned WALs. This includes the ability to compress the WAL which addresses #418.

Benchmarks:

goos: linux
goarch: amd64
pkg: github.com/grafana/tempo/tempodb/wal
cpu: Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz
BenchmarkWALNone-8     	     132	   8162877 ns/op	 2543406 B/op	   38124 allocs/op
BenchmarkWALSnappy-8   	     135	   8712571 ns/op	 2657195 B/op	   36621 allocs/op
BenchmarkWALLZ4-8      	      84	  13025362 ns/op	 5149115 B/op	   49653 allocs/op
BenchmarkWALGZIP-8     	      36	  34852004 ns/op	 3893758 B/op	   40209 allocs/op
BenchmarkWALZSTD-8     	      21	  47785689 ns/op	49718721 B/op	  112807 allocs/op
PASS
ok  	github.com/grafana/tempo/tempodb/wal	7.972s

The benchmarks do not reveal a clear winner here so I'm leaving None as the default and documenting the ability to turn this on. We will experiment with snappy internally.

Which issue(s) this PR fixes:
Fixes #418

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
Copy link
Contributor

@mdisibio mdisibio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a few thoughts

example/docker-compose/etc/tempo-s3-minio.yaml Outdated Show resolved Hide resolved
tempodb/encoding/iterator_wal.go Outdated Show resolved Hide resolved
Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
@mdisibio mdisibio self-requested a review April 12, 2021 16:00
@joe-elliott joe-elliott merged commit 034d971 into grafana:master Apr 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add WAL Checksums
2 participants