Skip to main content

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 properties include the resources assigned to the user. The properties set here are for the user, not 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:
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 0 indicates 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 that parallel_fragment_exec_instance_num takes 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.
Example 2:

capacity quota of database storage

The capacity quota of database storage is unlimited by default. And you can change quota value by using alter database.
The quota units are: B/K/KB/M/MB/G/GB/T/TB/P/PB Example 3:

Kill queries

To terminate a query on a particular connection with the following command:
The connection_id can be seen by show processlist; or select connection_id();.
text