Overview
log_storage_compress_func specifies the compression algorithm for compressing clogs.
Privilege requirements
Query parameters
Both the
systenant and all user tenants can query this parameter using theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview.Modify parameters
Both the
systenant and user tenants can modify this parameter.
Attributes
Attribute |
Description |
|---|---|
| Parameter type | string |
| Default Value | lz4_1.0 |
| Value range |
|
| Modifiable | Yes, you can use theALTER SYSTEM SETStatement modification. |
| Whether to restart the OBServer node for the change to take effect | No, the setting takes effect immediately. |
Configuration example
Sets the clog storage compression algorithm for the
tenant_nametenant under the sys tenant tolz4_1.0.obclient> ALTER SYSTEM SET log_storage_compress_func='lz4_1.0' tenant = 'tenant_name';Set the clog storage compression algorithm for all tenants to
lz4_1.0.obclient> ALTER SYSTEM SET log_storage_compress_func='lz4_1.0' tenant=all;Sets the compression algorithm for clog storage of the current tenant to
lz4_1.0.obclient> ALTER SYSTEM SET log_storage_compress_func='lz4_1.0';