mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
SERVER-56508 Ability to customise Zstandard compression level
SERVER-56508 Ability to customise Zstandard compression level
This commit is contained in:
parent
e1abfabc5a
commit
310b02cfa3
@ -51,6 +51,7 @@ public:
|
||||
double cacheSizeGB;
|
||||
size_t statisticsLogDelaySecs;
|
||||
std::string journalCompressor;
|
||||
int zstdCompressorLevel;
|
||||
bool directoryForIndexes;
|
||||
double maxCacheOverflowFileSizeGBDeprecated;
|
||||
std::string engineConfig;
|
||||
|
@ -59,6 +59,15 @@ configs:
|
||||
gte: 0
|
||||
lte: 100000
|
||||
default: 0
|
||||
"storage.wiredTiger.engineConfig.zstdCompressionLevel":
|
||||
description: 'Default compression level for zstandard compressor'
|
||||
arg_vartype: Int
|
||||
cpp_varname: 'wiredTigerGlobalOptions.zstdCompressorLevel'
|
||||
short_name: zstdDefaultCompressionLevel
|
||||
validator:
|
||||
gte: -5
|
||||
lte: 22
|
||||
default: 6
|
||||
"storage.wiredTiger.engineConfig.journalCompressor":
|
||||
description: 'Use a compressor for log records [none|snappy|zlib|zstd]'
|
||||
arg_vartype: String
|
||||
|
@ -364,6 +364,8 @@ WiredTigerKVEngine::WiredTigerKVEngine(const std::string& canonicalName,
|
||||
ss << "log=(enabled=true,archive=" << (_readOnly ? "false" : "true")
|
||||
<< ",path=journal,compressor=";
|
||||
ss << wiredTigerGlobalOptions.journalCompressor << "),";
|
||||
ss << "builtin_extension_config=(zstd=(compression_level="
|
||||
<< wiredTigerGlobalOptions.zstdCompressorLevel << ")),";
|
||||
ss << "file_manager=(close_idle_time=" << gWiredTigerFileHandleCloseIdleTime
|
||||
<< ",close_scan_interval=" << gWiredTigerFileHandleCloseScanInterval
|
||||
<< ",close_handle_minimum=" << gWiredTigerFileHandleCloseMinimum << "),";
|
||||
|
Loading…
Reference in New Issue
Block a user