Overview
ob_plan_cache_evict_high_percentage specifies the percentage of the maximum memory that triggers plan cache eviction.
Privilege requirements
Query variables
Both the
systenant and all user tenants can use theSHOW VARIABLESstatement and theinformation_schema.GLOBAL_VARIABLESview to view the values of global system variables.Modify variables
The
systenant can directly modify the values of global system variables.The user tenant must have the
SUPERorALTER SYSTEMprivilege to modify the value of a global system variable.
Attributes
Attribute |
Description |
|---|---|
| Parameter type | Int |
| Default Value | 90 |
| Value range | [0, 100] |
| Effective Scope | Global |
| Modifiable | Yes, you can use theSETStatement modification. |
Usage instructions
The memory size that triggers plan cache eviction (the high watermark for eviction) is calculated as follows: Absolute upper limit of plan cache memory × ob_plan_cache_evict_high_percentage / 100. For information about the absolute upper limit of plan cache memory, see ob_plan_cache_percentage.
Configuration example
Set the percentage of the maximum memory to be 90.
obclient> SET GLOBAL ob_plan_cache_evict_high_percentage =90;