-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
store: added option to reencode and compress postings before storing …
…them to the cache (#2297) * Added "diff+varint+snappy" codec for postings. Signed-off-by: Peter Štibraný <[email protected]> * Added option to reencode and compress postings stored in cache Signed-off-by: Peter Štibraný <[email protected]> * Expose enablePostingsCompression flag as CLI parameter. Signed-off-by: Peter Štibraný <[email protected]> * Use "github.com/pkg/errors" instead of "errors" package. Signed-off-by: Peter Štibraný <[email protected]> * remove break Signed-off-by: Peter Štibraný <[email protected]> * Removed empty branch Signed-off-by: Peter Štibraný <[email protected]> * Added copyright headers. Signed-off-by: Peter Štibraný <[email protected]> * Added CHANGELOG.md entry Signed-off-by: Peter Štibraný <[email protected]> * Added comments. Signed-off-by: Peter Štibraný <[email protected]> * Use Encbuf and Decbuf. Signed-off-by: Peter Štibraný <[email protected]> * Fix comments in test file. Signed-off-by: Peter Štibraný <[email protected]> * Another comment... Signed-off-by: Peter Štibraný <[email protected]> * Removed diffVarintSnappyEncode function. Signed-off-by: Peter Štibraný <[email protected]> * Comment on usage with in-memory cache. Signed-off-by: Peter Štibraný <[email protected]> * var block Signed-off-by: Peter Štibraný <[email protected]> * Removed extra comment. Signed-off-by: Peter Štibraný <[email protected]> * Move comment to error message. Signed-off-by: Peter Štibraný <[email protected]> * Separated snappy compression and postings reencoding into two functions. There is now header only for snappy-compressed postings. Signed-off-by: Peter Štibraný <[email protected]> * Added comment on using diff+varint+snappy. Signed-off-by: Peter Štibraný <[email protected]> * Shorten header Signed-off-by: Peter Štibraný <[email protected]> * Lint... Signed-off-by: Peter Štibraný <[email protected]> * Changed experimental.enable-postings-compression to experimental.enable-index-cache-postings-compression Signed-off-by: Peter Štibraný <[email protected]> * Added metrics for postings compression Signed-off-by: Peter Štibraný <[email protected]> * Added metrics for postings decompression Signed-off-by: Peter Štibraný <[email protected]> * Reorder metrics Signed-off-by: Peter Štibraný <[email protected]> * Fixed comment. Signed-off-by: Peter Štibraný <[email protected]> * Fixed comment. Signed-off-by: Peter Štibraný <[email protected]> * Use encode/decode labels. Signed-off-by: Peter Štibraný <[email protected]>
- Loading branch information
Showing
7 changed files
with
472 additions
and
29 deletions.
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
Oops, something went wrong.