Overview
ob_plan_cache_evict_low_percentage specifies the percentage of the maximum memory that the cache can occupy before evictions begin.
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.You must have the
SUPERorALTER SYSTEMprivilege to modify the value of a global system variable.
Attributes
Attribute |
Description |
|---|---|
| Parameter type | Int |
| Default Value | 50 |
| Value range | [0, 100] |
| Effective Scope | Global |
| Modifiable | Yes, you can use the following methods:SETStatement modification. |
Usage instructions
The memory size for stopping the eviction plan cache (the low-watermark of the eviction plan) = Absolute upper memory limit × ob_plan_cache_evict_low_percentage/100. For information about the absolute upper memory limit, see ob_plan_cache_percentage.
Configuration example
Set the percentage of the memory upper limit that the cache for stop-mining plans occupies to 50.
obclient> SET GLOBAL ob_plan_cache_evict_low_percentage =50;