Note
- For V4.4.x, this parameter is available starting with V4.4.2.
- For V4.2.5, this parameter is available starting with V4.2.5 BP5.
Description
enable_gts_standalone specifies whether to enable the GTS service to occupy a dedicated unit group. Enabling GTS to occupy a dedicated unit group can improve the performance and stability of the GTS service.
Privilege requirements
Query the parameter
systenants and all user tenants can use theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview to query this parameter.Modify the parameter
systenants and user tenants can modify this parameter.
Attributes
| Attribute | Description |
|---|---|
| Parameter type | Bool |
| Default value | False |
| Value range |
|
| Modifiable | Yes. You can use the ALTER SYSTEM SET statement to modify the parameter. |
| Effective upon OBServer node restart | No |
Considerations
The GTS service of a tenant is provided by the unit that hosts the system log stream. When the GTS service and user log stream are in the same unit, the GTS service may be affected by the access pressure of the user log stream and maintenance operations. To prevent the GTS service from affecting the overall availability of the tenant, OceanBase Database provides the GTS service to occupy a dedicated unit group.
After you enable the GTS service to occupy a dedicated unit group, the load balancing feature automatically selects a unit group to host the system log stream (the unit group specified in the unit_list parameter of the log stream maintenance command or the current unit group). The user log stream is then automatically distributed to other units.
After you enable the GTS service to occupy a dedicated unit group, make sure that the UNIT_NUM value of all zones of the tenant is greater than or equal to 2 and that the enable_rebalance parameter is enabled.
Examples
Enable the GTS service to occupy a dedicated unit group.
obclient> ALTER SYSTEM SET enable_gts_standalone = 'True';