Note
- Due to the architecture optimization of OceanBase Database V4.x, each module selects its own compression algorithm instead of using the unified default compression algorithm, and this parameter has been deprecated since OceanBase Database V4.0.0.
- For OceanBase Database V4.x:
- In OceanBase Database V4.1.0 and later, you can use the tenant-level parameter
log_transport_compress_functo specify the algorithm for compressing logs for transmission. For more information about thelog_transport_compress_funcparameter, see log_transport_compress_func. - In OceanBase Database V4.2.1 and later versions of V4.2.x, you can use the tenant-level parameter
kv_transport_compress_functo specify the algorithm for compressing OBKV-Table query results for transmission. In OceanBase Database V4.3.x, you can use the cluster-level parametertableapi_transport_compress_functo specify the algorithm for compressing OBKV-Table query results for transmission. For more information about thetableapi_transport_compress_funcparameter, see tableapi_transport_compress_func. - none
- lz4_1.0
- snappy_1.0
- zlib_1.0
- zstd_1.0
- zstd_1.3.8
Description
default_transport_compress_func specifies the remote procedure call (RPC) compression algorithm for the entire cluster.
Attributes
| Attribute | Description |
|---|---|
| Type | String |
| Default value | none |
| Value range | |
| Modifiable | Yes. You can use the ALTER SYSTEM SET statement to modify the parameter. |
| Effective upon OBServer node restart | No. The setting takes effect immediately. |
Examples
Set the RPC compression algorithm for the entire cluster to lz4_1.0.
obclient> ALTER SYSTEM SET default_transport_compress_func = 'lz4_1.0';