Number of user connections
Property is set for user granularity. To set the maximum number of connections between Client and FE, use the following command.
user_identity. That is, if two users jack'@'% and jack'@'192.% are created by the CREATE USER statement, then the ALTER USER SET PROPERTIES statement can work on the user jack, not jack'@'% or jack'@'192.%.
Example 1:
Query-related session variables
The session variables can be set by ‘key’ = ‘value’, which can limit the concurrency, memory and other query parameters in the current session. For example:-
pipeline_dop
The parallelism of a pipeline instance, which is used to adjust the query concurrency. The default value
0indicates that the system automatically adjusts the parallelism. You can also set it to a value greater than 0, generally half the number of physical CPU cores of the BE. Note thatparallel_fragment_exec_instance_numtakes effect only when the pipeline engine is disabled. - query_mem_limit Memory limit of a query on each BE node, can be adjusted when a query reports insufficient memory.
- load_mem_limit Memory limit for import, can be adjusted when an import job reports insufficient memory.
capacity quota of database storage
The capacity quota of database storage is unlimited by default. And you can change quota value by usingalter database.
Kill queries
To terminate a query on a particular connection with the following command:connection_id can be seen by show processlist; or select connection_id();.
text