Resource Groups#
Configures resource groups in the cluster.
Usage#
Provision the module:
minitrino provision -m resource-groups
Connect to the coordinator container’s Trino CLI as the admin user:
minitrino exec -i 'trino-cli --user admin'
SELECT 1;
The resource groups will apply to all users with varying weights and priorities
assigned to certain user groups. Resource groups active during query execution
can be viewed on the query details through the Trino web UI at
localhost:8080/ui/. They can also be viewed through SQL via
system.runtime.queries, e.g.:
SELECT resource_group_id FROM system.runtime.queries
WHERE query = 'SELECT 1' AND user = 'admin';
The resource group definitions are mounted to the cluster as a volume and can be viewed/edited within the container:
minitrino exec -i \
'vi /etc/${CLUSTER_DIST}/resource-groups.json'
minitrino restart
Dependent Modules#
file-group-provider: Required for group definitions.