Note
- For V4.4.x, this parameter is available starting with V4.4.0.
- For V4.3.5, this parameter is available starting with V4.3.5 BP2.
Description
The suspend_storage_cache_task parameter specifies whether to suspend background cache tasks.
Applicability
This parameter is applicable only to OceanBase Database in shared storage (SS) mode.
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.Notice
When you modify this parameter in an Oracle-compatible tenant or in the
systenant by specifying an Oracle-compatible tenant or a non-user tenant (such as thesystenant or the meta tenant), the parameter value can be modified, but the feature does not take effect. This is because the feature to manually specify a hot data caching strategy is effective only in MySQL-compatible tenants.
Attributes
| Attribute | Description |
|---|---|
| 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. The setting takes effect immediately. |
Examples
User tenant
Suspend cache tasks in the current user tenant.
obclient> ALTER SYSTEM SET suspend_storage_cache_task = True;Resume cache tasks in the current user tenant.
obclient> ALTER SYSTEM SET suspend_storage_cache_task = False;
System tenant
Suspend cache tasks in the
mysqltenanttenant.obclient> ALTER SYSTEM SET suspend_storage_cache_task = True TENANT = mysqltenant;Resume cache tasks in the
mysqltenanttenant.obclient> ALTER SYSTEM SET suspend_storage_cache_task = False TENANT = mysqltenant;