Note
This variable is available starting with in V2.2.77.
Description
sql_throttle_current_priority is used to set the throttling priority. Only requests from sessions where sql_throttle_current_priority is less than sql_throttle_priority will be throttled.
Required privileges
Query variables
Global level
The
systenant and user tenants can execute theSHOW VARIABLESstatement or querySYS.TENANT_VIRTUAL_GLOBAL_VARIABLE(Oracle-compatible mode) andinformation_schema.GLOBAL_VARIABLES(MySQL-compatible mode) to view the value of a global system variable.Session level
The
systenant and user tenants can execute theSHOW VARIABLESstatement or querySYS.TENANT_VIRTUAL_SESSION_VARIABLE(Oracle-compatible mode) andinformation_schema.SESSION_VARIABLES(MySQL-compatible mode) to view the value of a session system variable.
Modify variables
Set the variable at the global level
systenants can directly modify the value of a global system variable.MySQL user tenants must have the
SUPERorALTER SYSTEMprivilege to modify the value of a global system variable.For V4.x, Oracle user tenants must have the
ALTER SYSTEMprivilege to modify the value of a global system variable starting from V4.2.0.
Set the variable at the session level
systenants and user tenants can directly modify the value of a session system variable in their own tenant.
Attributes
| Attribute | Description |
|---|---|
| Parameter type | Int |
| Default value | 100 |
| Value range | No specific range. Recommended value is 100. |
| Scope |
|
| Modifiable | Yes. You can modifiy it using the SET statement. |
Sample query
Set the throttling priority for session requests to 100.
Session level
obclient> SET sql_throttle_current_priority= 100;Global level
obclient> SET GLOBAL sql_throttle_current_priority= 100;