Note
-
For OceanBase Database V4.4.x, this parameter is introduced in V4.4.1.
- For OceanBase Database V4.2.5, this parameter is introduced in V4.2.5 BP1.
Description
ls_scale_out_factor specifies the scaling factor for log streams and is used to control the number of log streams for a tenant on each service node.
Privilege requirements
Query the parameter
Both the
systenant and all user tenants can query the value of this parameter by using theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview.Modify the parameter
Both the
systenant and all user tenants can modify the value of this parameter by using theALTER SYSTEM SETstatement.
Attributes
| Attribute | Description |
|---|---|
| Parameter type | Int |
| Default value | 1 |
| Value range | [1, 10] |
| Modifiable | Yes. You can modify this parameter by using the ALTER SYSTEM SET statement. |
| Effective upon OBServer restart | No. This parameter takes effect immediately after the setting is applied. |
Examples
In the
systenant, set the scaling factor of themytesttenant to 2.obclient> ALTER SYSTEM SET ls_scale_out_factor = 2 TENANT = mytest;In a user tenant, set the scaling factor of the current tenant to 2.
obclient> ALTER SYSTEM SET ls_scale_out_factor = 2;
References
For more information about how to pre-scale out a tenant by setting the scaling factor, see Tenant pre-scaling.