This topic describes how to manually trigger a minor compaction.
Syntax
The syntax for triggering a minor compaction is as follows:
ALTER SYSTEM MINOR FREEZE [zone] | [server_list] | [tenant_list] | [replica]
The following table describes the value formats of the parameters in the syntax.
| Parameter | Value format |
|---|---|
| zone | Zone_name |
| server_list | SERVER = ip_port_list |
| tenant_list | TENANT = tenant_name [, tenant_name ...] |
| replica | PARTITION_ID = 'partition_idx%partition_count@table_id' |
Examples
The following are examples statements for triggering minor compactions:
Minor compaction at the cluster level
obclient> ALTER SYSTEM MINOR FREEZE;Minor compaction at the server level
obclient> ALTER SYSTEM MINOR FREEZE server = ('10.10.10.1:2882');Minor compaction at the tenant level
obclient> ALTER SYSTEM MINOR FREEZE tenant = ('prod_tenant');Minor compaction at the replica level
obclient> ALTER SYSTEM MINOR FREEZE ALTER partition_id = '8%0@1099511627933';