Resource Groups
Resource groups are a Simba Presto JDBC Connector feature that allows administrators to control resource usage and query scheduling.
To use resource groups, in the connection URL, define either the APPLICATIONNAME
or
CLIENTTAGS
properties, and the ApplicationNamePrefix
property if required. If
the Presto server has a resource group that selects for those values, then the queries
are executed according to the policies defined for that resource group.
Alternatively, you can set the APPLICATIONNAME
and CLIENTTAGS
properties on the server side. To do this, call setClientInfo()
using the APPLICATIONNAME
and CLIENTTAGS
keywords.
Important:
When you call setClientInfo()
, make sure that the APPLICATIONNAME
and CLIENTTAGS
keywords are in capital letters.
For example:
java.util.Properties pr = new java.util.Properties();
pr.put("APPLICATIONNAME", "Simba");
pr.put("CLIENTTAGS", "Presto, ClientApp" );
conn.setClientInfo(pr);
Or, as another example:
conn.setClientInfo("APPLICATIONNAME", "simba");
conn.setClientInfo("CLIENTTAGS", "Presto, Simba");