Overview
sql_throttle_current_priority specifies the priority for rate limiting. Only requests from sessions whose sql_throttle_current_priority is less than sql_throttle_priority are subject to throttling.
Privilege requirements
Query variables
Global level
Both the
systenant and all user tenants can use theSHOW VARIABLESstatement and theinformation_schema.GLOBAL_VARIABLESview to view the values of global system variables.Session level
Both the
systenant and all user tenants can use theSHOW VARIABLESstatement and theinformation_schema.SESSION_VARIABLESview to view the values of session system variables.
Modify variables
Global effective
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.
Session expiration
The
systenant and all user tenants can directly modify the values of session system variables for their own tenants.
Attributes
Attribute |
Description |
|---|---|
| Parameter type | Int |
| Default Value | 100 |
| Value range | No specific value range. The recommended value is 100. |
| Effective Scope |
|
| Modifiable | Yes, you can use theSETStatement modification. |
Configuration example
Set the session request throttling priority to 100.
Session expiration
obclient> SET sql_throttle_current_priority= 100;Effective globally
obclient> SET GLOBAL sql_throttle_current_priority= 100;