Note
For V4.2.1, this parameter is available starting with V4.2.1.
Description
enable_transfer specifies whether to allow Transfer within a tenant.
Privilege requirements
Query the parameter
The
systenant and all user tenants can query this parameter by using theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview.Modify the parameter
The
systenant and user tenants can modify this parameter.
Attributes
| Attribute | Description |
|---|---|
| Type | Bool |
| Default value | True |
| 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. |
Considerations
Run the following commands to dynamically adjust the number of log streams in a tenant based on the load balancing algorithm and automatically balance the leaders and partitions in the tenant:
obclient> ALTER SYSTEM SET enable_rebalance=true; obclient> ALTER SYSTEM SET enable_transfer=true;Run the following commands to balance the log streams without generating Transfer operations or changing the number of log streams:
obclient> ALTER SYSTEM SET enable_rebalance=true; obclient> ALTER SYSTEM SET enable_transfer=false;Run the following command to disable all load balancing-related operations and commands:
obclient> ALTER SYSTEM SET enable_rebalance=false;
Examples
Run the following command to disable Transfer for all tenants:
obclient> ALTER SYSTEM SET enable_transfer = false TENANT = all_user;Run the following command to enable Transfer for a MySQL tenant:
obclient> ALTER SYSTEM SET enable_transfer = true TENANT='MySQL';