> ## 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.

# alter_resource_group

<div className="kinetica-pydoc">
  <div className="dl py method">
    <div className="dt sig sig-object py" id="gpudb.GPUdb.alter_resource_group"> <span className="sig-name descname"><span className="pre">alter\_resource\_group</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">tier\_attributes</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">ranking</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">''</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">adjoining\_resource\_group</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">''</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span><a href="https://github.com/kineticadb/kinetica-api-python/blob/master/gpudb/gpudb.py#L19424"><span className="viewcode-link"><span className="pre">\[source]</span></span></a></div>

    <div className="dd">
      <p>Alters the properties of an existing resource group to facilitate resource management.</p>
      <p><strong>Parameters</strong></p>

      <div className="blockquote">
        <div>
          <div className="dl">
            <div className="dt">name (<span className="em">str</span>) –</div>

            <div className="dd">
              <p>Name of the group to be altered. Must be an existing resource group name or an empty string when used in conjunction with <span className="em">is\_default\_group</span>.</p>
            </div>

            <div className="dt">tier\_attributes (<span className="em">dict of str to dicts of str to str</span>) –</div>

            <div className="dd">
              <p>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.</p>
              <p>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’{"}"}{"}"}. Allowed keys are:</p>

              <ul className="simple">
                <li>
                  <p><strong>max\_memory</strong> – 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.</p>
                </li>
              </ul>

              <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
            </div>

            <div className="dt">ranking (<span className="em">str</span>) –</div>

            <div className="dd">
              <p>If the resource group ranking is to be updated, this indicates the relative ranking among existing resource groups where this resource group will be placed. Allowed values are:</p>

              <ul className="simple">
                <li>
                  <p><span className="em">\<blank></span> – Don’t change the ranking.</p>
                </li>

                <li>
                  <p><strong>first</strong> – Make this resource group the new first one in the ordering.</p>
                </li>

                <li>
                  <p><strong>last</strong> – Make this resource group the new last one in the ordering.</p>
                </li>

                <li>
                  <p><strong>before</strong> – Place this resource group before the one specified by input parameter <span className="em">adjoining\_resource\_group</span> in the ordering.</p>
                </li>

                <li>
                  <p><strong>after</strong> – Place this resource group after the one specified by input parameter <span className="em">adjoining\_resource\_group</span> in the ordering.</p>
                </li>
              </ul>

              <p>The default value is ‘’.</p>
            </div>

            <div className="dt">adjoining\_resource\_group (<span className="em">str</span>) –</div>

            <div className="dd">
              <p>If input parameter <span className="em">ranking</span> is <span className="em">before</span> or <span className="em">after</span>, this field indicates the resource group before or after which the current group will be placed; otherwise, leave blank. The default value is ‘’.</p>
            </div>

            <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

            <div className="dd">
              <p>Optional parameters. Allowed keys are:</p>

              <ul>
                <li>
                  <p><strong>max\_cpu\_concurrency</strong> – Maximum number of simultaneous threads that will be used to execute a request, per rank, for this group. The minimum allowed value is ‘4’.</p>
                </li>

                <li>
                  <p><strong>max\_data</strong> – 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’.</p>
                </li>

                <li>
                  <p><strong>max\_scheduling\_priority</strong> – Maximum priority of a scheduled task for this group. The minimum allowed value is ‘1’. The maximum allowed value is ‘100’.</p>
                </li>

                <li>
                  <p><strong>max\_tier\_priority</strong> – Maximum priority of a tiered object for this group. The minimum allowed value is ‘1’. The maximum allowed value is ‘10’.</p>
                </li>

                <li>
                  <p><strong>is\_default\_group</strong> – If <span className="em">true</span>, this request applies to the global default resource group. It is an error for this field to be <span className="em">true</span> when the input parameter <span className="em">name</span> field is also populated. Allowed values are:</p>

                  <ul className="simple">
                    <li>
                      <p>true</p>
                    </li>

                    <li>
                      <p>false</p>
                    </li>
                  </ul>

                  <p>The default value is ‘false’.</p>
                </li>

                <li>
                  <p><strong>persist</strong> – If <span className="em">true</span> and a system-level change was requested, the system configuration will be written to disk upon successful application of this request. This will commit the changes from this request and any additional in-memory modifications. Allowed values are:</p>

                  <ul className="simple">
                    <li>
                      <p>true</p>
                    </li>

                    <li>
                      <p>false</p>
                    </li>
                  </ul>

                  <p>The default value is ‘true’.</p>
                </li>
              </ul>

              <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
            </div>
          </div>
        </div>
      </div>

      <p><strong>Returns</strong></p>

      <div className="blockquote">
        <div>
          <p>A dict with the following entries–</p>

          <div className="dl simple">
            <div className="dt">name (<span className="em">str</span>) –</div>

            <div className="dd">
              <p>Value of input parameter <span className="em">name</span>.</p>
            </div>

            <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

            <div className="dd">
              <p>Additional information.</p>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
