> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kinetica.com/llms.txt
> Use this file to discover all available pages before exploring further.

# createResourceGroup

<div className="kinetica-javadoc">
  <ul className="member-list">
    <li>
      <div className="section detail" id="createResourceGroup(com.gpudb.protocol.CreateResourceGroupRequest)">
        <h3>createResourceGroup</h3>
        <div className="member-signature"><span className="modifiers">public</span> <span className="return-type"><a href="/content/api/java/com/gpudb/protocol/CreateResourceGroupResponse" title="class in com.gpudb.protocol">CreateResourceGroupResponse</a></span> <span className="element-name">createResourceGroup</span><wbr /><span className="parameters">(<a href="/content/api/java/com/gpudb/protocol/CreateResourceGroupRequest" title="class in com.gpudb.protocol">CreateResourceGroupRequest</a> request)</span> throws <span className="exceptions"><a href="/content/api/java/com/gpudb/GPUdbException" title="class in com.gpudb">GPUdbException</a></span></div>
        <div className="block">Creates a new resource group to facilitate resource management.</div>

        <div className="dl notes">
          <div className="dt">Parameters:</div>
          <div className="dd"><code>request</code> - <a href="/content/api/java/com/gpudb/protocol/CreateResourceGroupRequest" title="class in com.gpudb.protocol"><code>Request</code></a> object containing the parameters for the operation.</div>
          <div className="dt">Returns:</div>
          <div className="dd"><a href="/content/api/java/com/gpudb/protocol/CreateResourceGroupResponse" title="class in com.gpudb.protocol"><code>Response</code></a> object containing the results of the operation.</div>
          <div className="dt">Throws:</div>
          <div className="dd"><code><a href="/content/api/java/com/gpudb/GPUdbException" title="class in com.gpudb">GPUdbException</a></code> - if an error occurs during the operation.</div>
        </div>
      </div>
    </li>

    <li>
      <div className="section detail" id="createResourceGroup(java.lang.String,java.util.Map,java.lang.String,java.lang.String,java.util.Map)">
        <h3>createResourceGroup</h3>
        <div className="member-signature"><span className="modifiers">public</span> <span className="return-type"><a href="/content/api/java/com/gpudb/protocol/CreateResourceGroupResponse" title="class in com.gpudb.protocol">CreateResourceGroupResponse</a></span> <span className="element-name">createResourceGroup</span><wbr /><span className="parameters">(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" className="external-link">String</a> name, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" className="external-link">Map</a>\<<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" className="external-link">String</a>,<wbr /><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" className="external-link">Map</a>\<<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" className="external-link">String</a>,<wbr /><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" className="external-link">String</a>>> tierAttributes, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" className="external-link">String</a> ranking, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" className="external-link">String</a> adjoiningResourceGroup, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" className="external-link">Map</a>\<<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" className="external-link">String</a>,<wbr /><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" className="external-link">String</a>> options)</span> throws <span className="exceptions"><a href="/content/api/java/com/gpudb/GPUdbException" title="class in com.gpudb">GPUdbException</a></span></div>
        <div className="block">Creates a new resource group to facilitate resource management.</div>

        <div className="dl notes">
          <div className="dt">Parameters:</div>
          <div className="dd"><code>name</code> - Name of the group to be created. Must contain only letters, digits, and underscores, and cannot begin with a digit. Must not match existing resource group name.</div>

          <div className="dd">
            <code>tierAttributes</code> - Optional map containing tier names and their respective attribute group limits. The only valid attribute limit that can be set is max\_memory (in bytes) for the VRAM and RAM tiers. For instance, to set max VRAM capacity to 1GB per rank per GPU and max RAM capacity to 10GB per rank, use: {"{"}'VRAM':{"{"}'max\_memory':'1000000000'{"}"}, 'RAM':{"{"}'max\_memory':'10000000000'{"}"}{"}"}.

            <ul>
              <li><a href="/content/api/java/com/gpudb/protocol/CreateResourceGroupRequest.TierAttributes#MAX_MEMORY"><code>MAX\_MEMORY</code></a>: Maximum amount of memory usable at one time, per rank, per GPU, for the VRAM tier; or maximum amount of memory usable at one time, per rank, for the RAM tier. </li>
            </ul>

            The default value is an empty <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" className="external-link"><code>Map</code></a>.
          </div>

          <div className="dd">
            <code>ranking</code> - Indicates the relative ranking among existing resource groups where this new resource group will be placed. Supported values:

            <ul>
              <li><a href="/content/api/java/com/gpudb/protocol/CreateResourceGroupRequest.Ranking#FIRST"><code>FIRST</code></a>: Make this resource group the new first one in the ordering. </li>
              <li><a href="/content/api/java/com/gpudb/protocol/CreateResourceGroupRequest.Ranking#LAST"><code>LAST</code></a>: Make this resource group the new last one in the ordering. </li>
              <li><a href="/content/api/java/com/gpudb/protocol/CreateResourceGroupRequest.Ranking#BEFORE"><code>BEFORE</code></a>: Place this resource group before the one specified by <code>adjoiningResourceGroup</code> in the ordering. </li>
              <li><a href="/content/api/java/com/gpudb/protocol/CreateResourceGroupRequest.Ranking#AFTER"><code>AFTER</code></a>: Place this resource group after the one specified by <code>adjoiningResourceGroup</code> in the ordering. </li>
            </ul>
          </div>

          <div className="dd"><code>adjoiningResourceGroup</code> - If <code>ranking</code> is <a href="/content/api/java/com/gpudb/protocol/CreateResourceGroupRequest.Ranking#BEFORE"><code>BEFORE</code></a> or <a href="/content/api/java/com/gpudb/protocol/CreateResourceGroupRequest.Ranking#AFTER"><code>AFTER</code></a>, this field indicates the resource group before or after which the current group will be placed; otherwise, leave blank. The default value is ''.</div>

          <div className="dd">
            <code>options</code> - Optional parameters.

            <ul>
              <li><a href="/content/api/java/com/gpudb/protocol/CreateResourceGroupRequest.Options#MAX_CPU_CONCURRENCY"><code>MAX\_CPU\_CONCURRENCY</code></a>: Maximum number of simultaneous threads that will be used to execute a request, per rank, for this group. The minimum allowed value is '4'. </li>
              <li><a href="/content/api/java/com/gpudb/protocol/CreateResourceGroupRequest.Options#MAX_DATA"><code>MAX\_DATA</code></a>: Maximum amount of data, per rank, in bytes, that can be used by all database objects within this group. Set to -1 to indicate no upper limit. The minimum allowed value is '-1'. </li>
              <li><a href="/content/api/java/com/gpudb/protocol/CreateResourceGroupRequest.Options#MAX_SCHEDULING_PRIORITY"><code>MAX\_SCHEDULING\_PRIORITY</code></a>: Maximum priority of a scheduled task for this group. The minimum allowed value is '1'. The maximum allowed value is '100'. </li>
              <li><a href="/content/api/java/com/gpudb/protocol/CreateResourceGroupRequest.Options#MAX_TIER_PRIORITY"><code>MAX\_TIER\_PRIORITY</code></a>: Maximum priority of a tiered object for this group. The minimum allowed value is '1'. The maximum allowed value is '10'. </li>
            </ul>

            The default value is an empty <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" className="external-link"><code>Map</code></a>.
          </div>

          <div className="dt">Returns:</div>
          <div className="dd"><a href="/content/api/java/com/gpudb/protocol/CreateResourceGroupResponse" title="class in com.gpudb.protocol"><code>Response</code></a> object containing the results of the operation.</div>
          <div className="dt">Throws:</div>
          <div className="dd"><code><a href="/content/api/java/com/gpudb/GPUdbException" title="class in com.gpudb">GPUdbException</a></code> - if an error occurs during the operation.</div>
        </div>
      </div>
    </li>
  </ul>
</div>
