Overview
storage_meta_cache_priority specifies the priority of storing Meta Cache in KVCache.
Privilege requirements
Query parameters
Both the
systenant and all user tenants can query this parameter using theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview.Modify parameters
Only the
systenant can modify this parameter. User tenants cannot modify it.
Attributes
Attribute |
Description |
|---|---|
| Parameter type | Int |
| Default Value | 10 |
| Value range | [1,+∞) |
| Modifiable | Yes, you can use theALTER SYSTEM SETStatement modification. |
| Whether to restart the OBServer node for the change to take effect | No, the setting takes effect immediately. |
Usage instructions
OceanBase AI Database abstracts metadata such as table stores and SSTables into a unified concept called storage Meta, which is then managed within the KVCache memory. When KVCache utilization is low or there are frequent misses, users can adjust the priorities based on workload characteristics to optimize and flexibly allocate the limited KVCache memory resources.
In KVCache, a higher cache priority value indicates a higher priority and makes the cache less likely to be evicted. The priority parameters for the existing cache types are as follows:
tablet_ls_cache_priority, whose default value is 1000 and range is [1,+∞).
opt_tab_stat_cache_priority The default value is 1. Value range: [1,+∞).
index_block_cache_priority, whose default value is 10 and range is [1,+∞).
user_block_cache_priority The default value is 1. Value range: [1, +∞).
user_row_cache_priority The default value is 1. Value range: [1,+∞).
bf_cache_priority The default value is 1. Value range: [1,+∞).
fuse_row_cache_priority The default value is 1. Value range: [1,+∞).
Note that the default value for storing Meta priority is consistent with index_block_cache_priority, second only to tablet_ls_cache_priority.
Configuration example
Set the priority of storing Meta Cache in KVCache to 10.
obclient> ALTER SYSTEM SET storage_meta_cache_priority='10';