Note
This parameter is available starting with V1.4.
Description
balancer_tolerance_percentage specifies the tolerance of disk imbalance between log streams in a tenant for the partition balancing strategy. If the disk usage difference between any two log streams exceeds this percentage, the disk-based partition balancing is triggered.
Privilege requirements
Query the parameter
The
systenant and all user tenants can query this parameter by executing theSHOW PARAMETERSstatement.Modify the parameter
Only the
systenant can modify this parameter. User tenants cannot modify this parameter.
Attributes
| Attribute | Description |
|---|---|
| Type | Int |
| Default value | 10 |
| Value range | [1, 100) |
| 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 tolerance of disk imbalance between log streams in a tenant to 10.
obclient> ALTER SYSTEM SET balancer_tolerance_percentage=10;
