storage_meta_cache_priority specifies the priority of the storage meta cache in KVCache.
Note
This parameter was introduced in OceanBase Database V4.2.0.
| Attribute | Description |
|---|---|
| Type | Integer |
| Default value | 10 |
| Value range | [1, +∞) |
| Effective upon OBServer node restart | No |
OceanBase Database stores the metadata of Table Store and SSTables as storage meta in the KVCache memory for unified management. If the usage of the storage meta cache is not high or the storage meta cache is frequently missed, you can change its priority based on the characteristics of the load, so that the use of limited KVCache memory resources can be more efficient and flexible.
In KVCache, a larger priority value of a cache indicates a higher priority, and the cache is less likely to be evicted from the memory. OceanBase Database supports the following priority parameters of cache types:
tablet_ls_cache_priority: The default value is
1000, and the value range is [1, +∞).opt_tab_stat_cache_priority: The default value is
1, and the value range is [1, +∞).index_block_cache_priority: The default value is
10, and the value range is [1, +∞).user_block_cache_priority: The default value is
1, and the value range is [1, +∞).user_row_cache_priority: The default value is
1, and the value range is [1, +∞).bf_cache_priority: The default value is
1, and the value range is [1, +∞).fuse_row_cache_priority: The default value is
1, and the value range is [1, +∞).
Note that the default priority of the storage meta cache is the same as that of the index_block_cache_priority parameter, second only to the tablet_ls_cache_priority parameter.
Example
ALTER SYSTEM SET set storage_meta_cache_priority='10';