Note
This parameter is available starting with V1.4.
Description
balancer_tolerance_percentage specifies the tolerance for disk imbalance among log streams within a tenant in the partition balancing strategy. When the relative difference in disk usage between any two log streams exceeds this percentage, disk-based partition balancing is triggered.
Privilege requirements
Query the parameter
The
systenant and all user tenants can use theSHOW PARAMETERSstatement to query this parameter.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 among log streams of a tenant to 10.
obclient> ALTER SYSTEM SET balancer_tolerance_percentage=10;