-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
TSDB shipper + WAL #6049
Merged
Merged
TSDB shipper + WAL #6049
Changes from 88 commits
Commits
Show all changes
89 commits
Select commit
Hold shift + click to select a range
7231181
begins speccing out TSDB Head
owen-d 5e20970
auto incrementing series ref + mempostings
owen-d a04a2fd
mintime/maxtime methods
owen-d 0b67b76
tsdb head IndexReader impl
owen-d 9019d10
head correctly populates ref lookup
owen-d 35402a0
tsdb head tests
owen-d e69729e
adds prometheus license to tsdb head
owen-d 8de2ee6
Merge remote-tracking branch 'upstream/main' into tsdb/head
owen-d 968e617
linting
owen-d e051eee
[WIP] speccing out tsdb head wal
owen-d 7f207c7
fix length check and adds tsdb wal encoding tests
owen-d 3da9db8
exposes wal structs & removes closed semantics
owen-d 734a106
logs start time in the tsdb wal
owen-d dbb3067
wal interface + testing
owen-d cab1020
exports walrecord + returns ref when appending
owen-d 60bfe0b
specs out head manager
owen-d 5a07e53
tsdb head manager wal initialization
owen-d d83b86e
tsdb wal rotation
owen-d c629a2b
wals dont use node name, but tsdb files do
owen-d c115627
cleans up fn signature
owen-d 4eaa1f3
multi tsdb idx now just wraps Index interfaces
owen-d 9dc7234
no longer sorts indices when creating multi-idx
owen-d bf4b125
tenantHeads & HeadManger index impls
owen-d 5d9e66c
head mgr tests
owen-d 3ccd7ee
bugfixes & head manager tests
owen-d cd39afb
tsdb dir selection now helper fns
owen-d b556d90
period utility
owen-d ce6a27c
pulls out more code to helpers, fixes some var races
owen-d 2fd813e
head recovery is more generic
owen-d 4750079
tsdb manager builds from wals
owen-d c5eda36
pulls more helpers out of headmanager
owen-d c6b0747
lockedIdx, Close() on idx, tsdbManager update
owen-d f6859d1
Merge remote-tracking branch 'upstream/main' into tsdb/head-wal
owen-d 3ece142
removes mmap from index reader implementation
owen-d 8b4c2b4
tsdb file
owen-d ee6eda9
adds tsdb shipper config and refactors initStore
owen-d b844d85
removes unused tsdbManager code
owen-d 0be6483
Merge remote-tracking branch 'upstream/main' into tsdb/head-wal
owen-d eb31b32
implements stores.Index and stores.ChunkWriter for tsdb
owen-d 32218b9
chunk.Data now supports an Entries() method
owen-d 7d20b5e
moves walreader to new util/wal pkg to avoid circular dep + tsdb stor…
owen-d f6f557e
tsdb store
owen-d 3fbf316
passes indexWriter to chunkWriter
owen-d 5ad1cf5
build a tsdb per index bucket in according with shipper conventions
owen-d 52c4ea3
dont open tsdb files until necessary for indexshipper
owen-d e28b941
tsdbManager Index impl
owen-d 15667a7
tsdb defaults + initStore fix for invalid looping
owen-d 4775798
fixes UsingTSDB helper
owen-d 7a51eda
disables deleteRequestStore when using TSDB
owen-d 5fa3b4a
pass limits to tsdb store
owen-d c88d742
always start headmanager for tsdb
owen-d ed60710
fixes copy bug
owen-d cacbea8
more logging
owen-d afecd21
fixes duplicate tenant label bug
owen-d 1f84ce0
debug logs, uses label builder, removes __name__=logs for tsdb
owen-d 3b734cf
tsdb fixes labels at earlier pt
owen-d b88df5c
account for setting tenant label in head manager test
owen-d cdb9cfd
changing tsdb dir names
owen-d 2c2dbb7
identifier interface, builder to tsdb pkg
owen-d 9024210
tsdb version path prefix
owen-d 40cc48c
fixes buildfromwals identifier
owen-d 8d2d033
fixes tsdb shipper paths
owen-d 08500ed
split buckets once per user set
owen-d f84af6a
refactors combining single and multi tenant tsdb indices on shipper r…
owen-d aa46336
indexshipper ignores old gzip logic
owen-d f388e24
method name refactor
owen-d 4690dff
remove unused record type
owen-d a31c203
removes v1 prefix in tsdb paths and refactores indices method
owen-d 8e6956f
ignores double optimization in tsdb looking for multitenant idx, ship…
owen-d e928519
removes 5-ln requirement on shipper tablename regexp
owen-d bc0fe93
groups identifiers, begins removing multitenant prefix in shipped files
owen-d 9fc3385
passses open fn to indexshipper
owen-d 3ce9110
exposes RealByteSlice
owen-d 725abf8
TSDBFile no longer needs a file descriptor, parses gzip extensions
owen-d 8da79b8
method signature fixing
owen-d bce8c52
stop masquerading as compressed indices post-download in indexshipper
owen-d e229160
variable bucket regexp
owen-d 0b2125e
removes accidental configs committed
owen-d d1ff6f7
Merge remote-tracking branch 'upstream/main' into tsdb/head-wal
owen-d cc34584
label matcher handling for multitenancy and metricname in tsdb
owen-d a850e42
explicitly require fingerprint when creating tsdb index
owen-d 14dcb1d
only add tenant label when creating multitenant tsdb
owen-d a853035
linting + unused removal
owen-d 4871228
more linting :(
owen-d 0a0aed8
goimports
owen-d 74ccc09
removes uploadername from indexshipper
owen-d 65aac18
maxuint32 for arm32 builds
owen-d eafaf1a
tsdb chunk filterer support
owen-d c6e7cf6
always set ingester name when using object storage index
sandeepsukhani File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reason ingester name is not being set with target
all
is becauset.Cfg.isModuleEnabled
would only look at explicitly specified targets in-target
flag. We will have to move it to a separate block with or without the check usingt.Cfg.isModuleActive("ingester")
check which actually checks whether the module is active or not .