-
Notifications
You must be signed in to change notification settings - Fork 5
Unload unused data from DataStorage #143
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
Draft
cherep58
wants to merge
192
commits into
storage_data_unloading
Choose a base branch
from
snapshot-encoder-loader
base: storage_data_unloading
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
192 commits
Select commit
Hold shift + click to select a range
2985eec
DeltaZigZag and DeltaDeltaZigZag encodings
c32babe
encoding fix
9902f6e
tmp
17a681a
tmp benchmark
33d4b18
update bare_bones/encoding.h
56827c6
benchmark fix
15393b7
encoding changes
beddbb1
remove benchmark for another branch
bb0607e
Merge branch 'pp' into delta-zigzag-encoders
7dbe4b0
format fix
e1b88cd
Merge branch 'pp' into delta-zigzag-encoders
7e4e43e
Merge branch 'refs/heads/delta-zigzag-encoders' into snapshot-encoder
e6f0136
basic snapshot
12a5381
tmp
b30baae
remove finalized bitmap from dataStorage
4d60a84
non-const stream getter for unloadable encoders
01be041
trim lower bits for CompactBitSequence
844befc
unloader entrypoint
3cc5949
unloader tmp
6c55930
remove snapshot data structure
179716b
unloader refactoring
8cc034f
fix
9c7283f
empty loader test
3871aaf
change Sequence to CompactSequence in Unloader
fd57b6e
Loader/Unloader current
36335be
Loader correctly reads BitSequence
62faf73
unloader refactoring
3a9745d
outdated chunk merger merge only loaded series
1cec645
loader + loader tests
64c99fe
Loader/Unloader refactoring
1afb363
Merge branch 'pp' into snapshot-encoder
f3515f8
tidy fix
48df6cb
trim_lower_bytes fix
f5e13de
bit-unit manipulation
d83d6ec
unloader fixes
bc5a935
rework loader for sequential read
d4cf341
assorted fixes
97952c2
add common.h for both loader and unloader
c0a49f8
Merge branch 'pp' into snapshot-encoder
ee39ce1
Merge branch 'pp' into unloader-entrypoint
d198163
initial entrypoint
71f2b02
entrypoint tmp
3f0186c
queriers now mark queried series and stores series to load
c278595
inject Loader into queries routine
9f7de3d
fixes
fc04970
assorted fixes
277f225
querier and instant_querier small querier-loader-unloader tests
2062360
fix
50c4284
add Loader to chunk recoder
26f0f13
Merge branch 'pp' into snapshot-encoder
ac7423e
span saving to DataStorage fix
1248c56
review fixes
9d49669
used NewDataStorage function
cherep58 ef20e14
created UnloadedDataStorage
cherep58 631a38f
created Head.UnloadUnusedSeriesData method
cherep58 bf3c288
created UnloadedDataLoader
cherep58 765f7de
text fixes
724fa04
push_back_bytes optim
507bc88
move lock to task
u-veles-a 3bfe318
tidy fix
866f1c3
some fix
u-veles-a 3e62db1
tests fix
a4ae77a
bitset atomic set/reset
886e4eb
change roaring::Roaring to BareBones::Bitset
bc8fa44
entrypoint fix
6cfd7a8
review fix
f5fdaf6
Merge branch 'pp' into snapshot-encoder
efd78ec
added read_iterator
38424aa
fixes
086934b
change popcount == 0 check to empty() method
f6450d0
fix review
u-veles-a a66b8f7
atomic bitset fix
1e92dbe
Loader will merge outdated chunks only for freshly loaded series
71cbb32
Loader ctor update
a99de0c
fix review 2
u-veles-a 0361752
change internal Loader infos from map to vector
e61ac12
Loader: buffer size validation
ec95c52
Merge branch 'pp' into lock_in_task
u-veles-a bafb45f
review assorted fixes
0b77498
move outdated_chunks.erase into OutdatedChunkMerger::merge(ls_id)
7a40d5e
Merge branch 'pp' into snapshot-encoder
7d4e4fa
minimal required fixes
c35b078
_Querier tests check storage_.queried_series_bitmap
10e18bf
set/reset on iterators + tests
206716d
BareBones::Bitset::create_read_iterator tests
5a7b651
BareBones::CompactSequence<>::create_read_iterator tests
1e029ad
Merge branch 'snapshot-encoder' of https://github.com/deckhouse/promp…
cherep58 ae4499b
BareBones::CompactSequence::size_in_bytes() fix
71de83a
Bitset tests fix
1914e62
Merge branch 'snapshot-encoder' of https://github.com/deckhouse/promp…
cherep58 54cd722
Bitset tests better coverage
84d62fe
(instant) querier tests move and fix
9f9aefa
Merge branch 'lock_in_task' of https://github.com/deckhouse/prompp in…
cherep58 8b3adfe
refactored UnloadedDataStorage test
cherep58 4e40971
small fix
u-veles-a 0c64b13
Unloader tests better coverage
15c7b91
Loader tests better coverage
b38af07
renamed ForEachShard to ForEachSnapshot
cherep58 4f28d90
added lock in UnloadUnusedSeriesData method
cherep58 f31bd58
created Head::CreateDataStorageLoadAndQueryTask
cherep58 d8cefac
created GenericTask::SetShardsNumber
cherep58 1efed63
created Head::EnqueueOnShard
cherep58 2ea1875
Merge branch 'task_for_shard' of https://github.com/deckhouse/prompp …
cherep58 c643046
used EnqueueOnShard in Head::CreateDataStorageLoadAndQueryTask
cherep58 8a8afaa
refactored TaskWaiter
cherep58 fef2354
added data load support for DataStorage::Query method
cherep58 a3c6769
added data load support for DataStorage::InstantQuery method
cherep58 709a2f5
Querier concept and Querier Wrappers
65a8795
entrypoint changes
891368f
Loader from Slice of Queriers
e8e792e
Merge branch 'snapshot-encoder-loader' of https://github.com/deckhous…
cherep58 93c67a3
fixed compilation errors
cherep58 5139dc1
removed unused code
cherep58 3e3749f
created CBytes type and refactored HeadDataStorageSerializedChunks
cherep58 df6d3a5
added truncating unloaded data storage file at loading
cherep58 aa329fa
fixed out of bound bug in GenericTask
cherep58 6db0229
added flag for unload storage data by timer
cherep58 d0155ec
fixed bug in DataLoader
cherep58 97b2827
added writing format version in UnloadedDataStorage
cherep58 7856628
special Encoder for outdated chunks + OutdatedSampleEncoder disintegr…
81e5be4
don't unload chunks with stream's size < 1 byte
73ae6f7
remove Loader's buffer size validation
603218c
test for big outdated chunk
fc30748
include clean-up
40cf6a4
Merge branch 'pp' into snapshot-encoder
1ffb484
added unit tests for relabeler/querier/Querier
cherep58 71d459e
added unit tests for relabeler/querier/ChunkQuerier
cherep58 69f57b5
created LoaderVariantPtr
cherep58 517067b
added extra map to loader
1aaf7ec
wrap into a new class
27aeb38
created BatchIterator
cherep58 892d200
review fixes
965e9f6
created bindings for SeriesIdBatchIterator
cherep58 4117914
added unit test for BatchIteratorFixture
cherep58 f609eaa
UnorderedVector fixes
4e449f6
Loader::UnorderedVector tests
7b8e60b
Merge branch 'pp' into snapshot-encoder
5ba9afc
merge fixes
9138b3f
Merge branch 'snapshot-encoder' of https://github.com/deckhouse/promp…
cherep58 e5fabce
changed logic of using LsIdBatchIterator
cherep58 4461bc4
Merge branch 'storage_data_unloading' of https://github.com/deckhouse…
cherep58 339925f
Merge branch 'storage_data_unloading' of https://github.com/deckhouse…
cherep58 db9d0eb
refactored block writer
cherep58 0cd3879
created RevertableLoader and used it in BlockWriter in GO
cherep58 6bea26e
changed loader logic: load only unloaded series
cherep58 136bcd8
changed reverter logic: revert only not queried series
cherep58 0d4e3b6
renamed BlockWriter to Writer
cherep58 42b702e
refactored block.Writer input parameters
cherep58 c73eccf
removed lsIdBatchSize input parameter from block.Writer
cherep58 ffe953a
fixed bug in reverter logic
cherep58 5330191
moved mutex lock logic in BlockWriter
cherep58 400cddb
created blockWriters
cherep58 a389579
added latest_timestamp to return value in prompp_head_wal_decoder_dec…
cherep58 3bb2d95
refactored test for head loading
cherep58 b4230ba
refactored shard loader
cherep58 f3d6d77
1) added earliest_timestamp to return value in prompp_head_wal_decode…
cherep58 0838894
return create_timestamp and encode_timestamp instead of earliest_time…
cherep58 3288c98
split Unloader interface into 2 functions: create_snapshot and unload
cherep58 f35aa77
created bindings for series_data unloader and used it in GO
cherep58 e134f46
moved UnloadedDataStorage from cppbridge to relabeler/head
cherep58 edb30eb
added locks in UnloadedDataStorage
cherep58 ba5fdfe
created GO-binding for get queries series bitset
cherep58 ee1a09d
created QueriedSeriesStorageWriter and QueriedSeriesStorageReader
cherep58 cfe5e51
added ability to read empty bitset in QueriedSeriesStorageReader
cherep58 dd16601
created prompp_series_data_data_storage_queried_series_set_bitset GO-…
cherep58 f38bca2
1) used bool flag instead unload interval for data storage unloading
cherep58 749a385
split UnloadedStatStorage::Write into two methods
cherep58 5f42102
added flag validation before unloading data in timer
cherep58 dd618d2
added errors logging in Head::UnloadUnusedSeriesData
cherep58 e606f0f
fixed bug with queried_series_bitmap reallocation in DataStorage
cherep58 f9a64f2
Merge branch 'storage_data_unloading' of https://github.com/deckhouse…
cherep58 b2d81ac
fixed compilation error
cherep58 952f682
fixed compilation error
cherep58 e100a98
changed mechanism of bitset serialization in GO-bindings
cherep58 bb147c1
optimized memory allocations in ReadSegment method
cherep58 700c8c2
added logging for enabled unload data storage feature
cherep58 5b69b25
Merge branch 'pp' of https://github.com/deckhouse/prompp into snapsho…
cherep58 0b0391c
Merge branch 'storage_data_unloading' into snapshot-encoder-loader
cherep58 cac9e21
added Sync call in QueriedSeriesStorage::Write method
cherep58 db33ad3
added unit tests for UnloadedDataStorage
cherep58 8ce1d1e
added unit tests for QueriedSeriesStorage
cherep58 d084fe7
added unit tests for HeadLoadSuite
cherep58 91caa9f
changed UnloadedDataStorage work logic
cherep58 322faac
added unit test in HeadLoadSuite
cherep58 6742038
changed QueriedSeriesStorage work logic
cherep58 45a14e2
changed UnloadedDataStorage work logic
cherep58 cddd1d1
added unit tests for head loading
cherep58 ca2d910
removed logs
cherep58 051c7f5
Merge branch 'storage_data_unloading' of https://github.com/deckhouse…
cherep58 1003e07
added valid storage logic in QueriedSeriesStorage
cherep58 8019545
changed open file logic in storages
cherep58 7047738
fixes after merge
cherep58 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
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.
Uh oh!
There was an error while loading. Please reload this page.