OBKV supports compressing RPC messages in response to query requests. RPC is disabled by default. OBKV provides the following parameters to enable RPC compression and control the compression threshold:
kv_transport_compress_func
The default value is none. The following four compression algorithms are supported: lz4_1.0, snappy_1.0, zlib_1.0, and zstd_1.0 zstd 1.3.8.
kv_transport_compress_threshold
The default value is 10K. After you set the value of
kv_transport_compress_func, the compression is performed only when the size of the query result set exceeds the specified threshold.
Here is an example:
alter system set kv_transport_compress_func="lz4_1.0";
alter system set kv_transport_compress_threshold='1M';