Note
For V1.4, this parameter is available starting with V1.4.
Description
memory_limit_percentage specifies the percentage of the total available memory size of an OBServer node to the total memory size.
Privilege requirements
Query the parameter
systenant and all user tenants can query this parameter by using theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview.Modify the parameter
Only the
systenant can modify this parameter. User tenants cannot modify this parameter.
Attributes
| Attribute | Description |
|---|---|
| Type | Int |
| Default value | 80 |
| Value range | [10, 95]
NoteFor V4.2.1, the value range is adjusted from [10, 90] to [10, 95]. |
| 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
If the value of memory_limit is not 0, the system ignores the setting of memory_limit_percentage and uses the value specified for memory_limit instead. For more information about memory_limit, see memory_limit.
Examples
Set the total available memory size of an OBServer node to 80% of the total memory size.
obclient> ALTER SYSTEM SET memory_limit_percentage='80';