Add scan thread token (#6443)

This commit is contained in:
Mingyu Chen
2021-08-27 10:56:17 +08:00
committed by GitHub
parent 4cfebc35a7
commit 3f2fdd236f
24 changed files with 349 additions and 105 deletions

View File

@ -40,7 +40,9 @@ key:
Super user rights:
max_user_connections: Maximum number of connections.
max_query_instances: Maximum number of query instance user can use when query.
resource.cpu_share: cpu resource assignment.
sql_block_rules: set sql block rules。After setting, if the query user execute match the rules, it will be rejected.
cpu_resource_limit: limit the cpu resource usage of a query. See session variable `cpu_resource_limit`.
resource.cpu_share: cpu resource assignment.(Derepcated)
Load_cluster. {cluster_name}. priority: assigns priority to a specified cluster, which can be HIGH or NORMAL
Ordinary user rights:
@ -81,6 +83,12 @@ SET PROPERTY FOR 'jack' 'load_cluster.{cluster_name}.priority' = 'HIGH';
8. Modify the maximum number of query instance for jack to 3000
SET PROPERTY FOR 'jack' 'max_query_instances' = '3000';
9. Modify the sql block rule for jack
SET PROPERTY FOR 'jack' 'sql_block_rules' = 'rule1, rule2';
10. Modify the cpu resource usage limit for jack
SET PROPERTY FOR 'jack' 'cpu_resource_limit' = '2';
## keyword
SET, PROPERTY