-
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ý <peter.stibrany@grafana.com> * Added option to reencode and compress postings stored in cache Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com> * Expose enablePostingsCompression flag as CLI parameter. Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com> * Use "github.com/pkg/errors" instead of "errors" package. Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com> * remove break Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com> * Removed empty branch Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com> * Added copyright headers. Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com> * Added CHANGELOG.md entry Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com> * Added comments. Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com> * Use Encbuf and Decbuf. Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com> * Fix comments in test file. Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com> * Another comment... Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com> * Removed diffVarintSnappyEncode function. Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com> * Comment on usage with in-memory cache. Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com> * var block Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com> * Removed extra comment. Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com> * Move comment to error message. Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com> * Separated snappy compression and postings reencoding into two functions. There is now header only for snappy-compressed postings. Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com> * Added comment on using diff+varint+snappy. Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com> * Shorten header Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com> * Lint... Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com> * Changed experimental.enable-postings-compression to experimental.enable-index-cache-postings-compression Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com> * Added metrics for postings compression Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com> * Added metrics for postings decompression Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com> * Reorder metrics Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com> * Fixed comment. Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com> * Fixed comment. Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com> * Use encode/decode labels. Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
- 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.