Skip to content

Commit

Permalink
add compression-type configure annotation,variable default
Browse files Browse the repository at this point in the history
  • Loading branch information
lqxhub committed May 7, 2023
1 parent e6dcc61 commit 040e156
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions conf/pika.conf
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,7 @@ max-bytes-for-level-multiplier : 10

# the compression type to use for blob files. All blobs in the same file are compressed using the same algorithm.
# Supported types: [snappy, zlib, lz4, zstd]. If you do not wanna compress the SST file, please set its value as none.
# you should compile the Pika from the source code and then link it with other compression algorithm library statically by yourself.
# blob-compression-type : lz4

# set this to open to make BlobDB actively relocate valid blobs from the oldest blob files as they are encountered during compaction.
Expand Down
2 changes: 1 addition & 1 deletion include/pika_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ class PikaConf : public pstd::BaseConf {
bool enable_blob_files_ = false;
int64_t min_blob_size_ = 4096; // 4K
int64_t blob_file_size_ = 256 * 1024 * 1024; // 256M
std::string blob_compression_type_;
std::string blob_compression_type_ = "none";
bool enable_blob_garbage_collection_ = false;
double blob_garbage_collection_age_cutoff_ = 0.25;
double blob_garbage_collection_force_threshold_ = 1.0;
Expand Down

0 comments on commit 040e156

Please sign in to comment.