Resource Pool Basics
On this page
This page explains how to create a new resource pool, modify an existing resource pool, how to show resource pool statuses, and introduces some built-in resource pools.
Create a New Resource Pool
To create a new resource pool, run CREATE RESOURCE POOL
from the master aggregator.
Modify an Existing Resource Pool
To modify an existing resource pool, run ALTER RESOURCE POOL
from the master aggregator.
MV_ RESOURCE_ POOL_ STATUS
You can also show resource pool status across your pools with the information_MV_
view collects data from all nodes.
SELECT * FROM information_schema.MV_RESOURCE_POOL_STATUS;
+---------+-----------+-----------------+------------------+----------------+------------------+---------------------+-----------------------+
| NODE_ID | POOL_NAME | RUNNING_QUERIES | QUEUEING_QUERIES | KILLED_QUERIES | FINISHED_QUERIES | TOTAL_QUEUE_TIME_US | AVERAGE_QUEUE_TIME_US |
+---------+-----------+-----------------+------------------+----------------+------------------+---------------------+-----------------------+
| 3 | pool1 | 0 | 0 | 0 | 0 | 0 | 0 |
| 1 | pool1 | 0 | 0 | 0 | 0 | 0 | 0 |
| 2 | pool1 | 0 | 0 | 0 | 0 | 0 | 0 |
+---------+-----------+-----------------+------------------+----------------+------------------+---------------------+-----------------------+
For more information, see ALTER RESOURCE POOL.
The Built-in Resource Pools
Every cluster contains the built-in resource pools system_
, default_
, and system_
.
Note
For each user, default_
is used unless a user-created resource pool has been assigned to the user.
The system_
runs when enable_
is set to ON
.system_
is running and the resource_HARD
, the pool reserves 5% of CPU utilization for collection of background statistics.
By default, client connections to SingleStore use the default_
.default_
can have up to 100% of available query execution memory, up to 100% CPU utilization (depending on the resource_
Last modified: April 19, 2023