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

# adminAddRanks

<div className="kinetica-doxygen">
  <div id="a6278c393c68970163b7af72e4504235b" />

  <h2 className="memtitle"><span className="permalink"><a href="#a6278c393c68970163b7af72e4504235b">◆ </a></span>adminAddRanks() <span className="overload">\[1/4]</span></h2>

  <div className="memitem">
    <div className="memproto">
      <table className="memname">
        <tr>
          <td className="memname"><a className="el" href="/content/api/cpp/structgpudb_1_1AdminAddRanksResponse">AdminAddRanksResponse</a> gpudb::GPUdb::adminAddRanks </td>
          <td>(</td>
          <td className="paramtype">const <a className="el" href="/content/api/cpp/structgpudb_1_1AdminAddRanksRequest">AdminAddRanksRequest</a> &</td>
          <td className="paramname"><span className="paramname"><span className="em">request\_</span></span></td>
          <td>)</td>
          <td> const</td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Add one or more ranks to an existing Kinetica cluster. </p>
      <p>The new ranks will not contain any data initially (other than replicated tables) and will not be assigned any shards. To rebalance data and shards across the cluster, use <a className="el" href="#a12ddec404e39c247d808318977c10d6b">adminRebalance</a>.</p>
      <p>The database must be offline for this operation, see <a className="el" href="#a9458238afaafde877e568a92d45abb75">adminOffline</a></p>
      <p>For example, if attempting to add three new ranks (two ranks on host 172.123.45.67 and one rank on host 172.123.45.68) to a Kinetica cluster with additional configuration parameters:</p>

      <ul>
        <li><a className="el" href="/content/api/cpp/structgpudb_1_1AdminAddRanksRequest#a235f555606ba1872e1e7af726346d60b">hosts</a> would be an array including 172.123.45.67 in the first two indices (signifying two ranks being added to host 172.123.45.67) and 172.123.45.68 in the last index (signifying one rank being added to host 172.123.45.67)</li>
        <li><a className="el" href="/content/api/cpp/structgpudb_1_1AdminAddRanksRequest#a91781e9348c1f357bbaeb977b26a98e1">configParams</a> would be an array of maps, with each map corresponding to the ranks being added in <a className="el" href="/content/api/cpp/structgpudb_1_1AdminAddRanksRequest#a235f555606ba1872e1e7af726346d60b">hosts</a>. The key of each map would be the configuration parameter name and the value would be the parameter's value, e.g. '{"{"}"rank.gpu":"1"{"}"}'</li>
      </ul>

      <p>This endpoint's processing includes copying all replicated table data to the new rank(s) and therefore could take a long time. The API call may time out if run directly. It is recommended to run this endpoint asynchronously via <a className="el" href="#a02ef4c58e395bbf2c83325cf592397af">createJob</a>.</p>

      <div className="dl section attention">
        <div className="dt">Attention</div>
        <div className="dd">This method should be used for on-premise deployments only.</div>
      </div>

      <div className="dl params">
        <div className="dt">Parameters</div>

        <div className="dd">
          <table className="params">
            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">request\_</td>
              <td><a className="el" href="/content/api/cpp/structgpudb_1_1AdminAddRanksRequest">Request</a> object containing the parameters for the operation.</td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd"><a className="el" href="/content/api/cpp/structgpudb_1_1AdminAddRanksResponse">Response</a> object containing the result of the operation. </div>
      </div>
    </div>
  </div>

  <div id="a3b5ba83013930fff00da5112434edae2" />

  <h2 className="memtitle"><span className="permalink"><a href="#a3b5ba83013930fff00da5112434edae2">◆ </a></span>adminAddRanks() <span className="overload">\[2/4]</span></h2>

  <div className="memitem">
    <div className="memproto">
      <table className="memname">
        <tr>
          <td className="memname"><a className="el" href="/content/api/cpp/structgpudb_1_1AdminAddRanksResponse">AdminAddRanksResponse</a> & gpudb::GPUdb::adminAddRanks </td>
          <td>(</td>
          <td className="paramtype">const <a className="el" href="/content/api/cpp/structgpudb_1_1AdminAddRanksRequest">AdminAddRanksRequest</a> &</td>
          <td className="paramname"><span className="paramname"><span className="em">request\_</span></span>, </td>
        </tr>

        <tr>
          <td className="paramkey" />

          <td />

          <td className="paramtype"><a className="el" href="/content/api/cpp/structgpudb_1_1AdminAddRanksResponse">AdminAddRanksResponse</a> &</td>
          <td className="paramname"><span className="paramname"><span className="em">response\_</span></span> ) const</td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Add one or more ranks to an existing Kinetica cluster. </p>
      <p>The new ranks will not contain any data initially (other than replicated tables) and will not be assigned any shards. To rebalance data and shards across the cluster, use <a className="el" href="#a12ddec404e39c247d808318977c10d6b">adminRebalance</a>.</p>
      <p>The database must be offline for this operation, see <a className="el" href="#a9458238afaafde877e568a92d45abb75">adminOffline</a></p>
      <p>For example, if attempting to add three new ranks (two ranks on host 172.123.45.67 and one rank on host 172.123.45.68) to a Kinetica cluster with additional configuration parameters:</p>

      <ul>
        <li><a className="el" href="/content/api/cpp/structgpudb_1_1AdminAddRanksRequest#a235f555606ba1872e1e7af726346d60b">hosts</a> would be an array including 172.123.45.67 in the first two indices (signifying two ranks being added to host 172.123.45.67) and 172.123.45.68 in the last index (signifying one rank being added to host 172.123.45.67)</li>
        <li><a className="el" href="/content/api/cpp/structgpudb_1_1AdminAddRanksRequest#a91781e9348c1f357bbaeb977b26a98e1">configParams</a> would be an array of maps, with each map corresponding to the ranks being added in <a className="el" href="/content/api/cpp/structgpudb_1_1AdminAddRanksRequest#a235f555606ba1872e1e7af726346d60b">hosts</a>. The key of each map would be the configuration parameter name and the value would be the parameter's value, e.g. '{"{"}"rank.gpu":"1"{"}"}'</li>
      </ul>

      <p>This endpoint's processing includes copying all replicated table data to the new rank(s) and therefore could take a long time. The API call may time out if run directly. It is recommended to run this endpoint asynchronously via <a className="el" href="#a02ef4c58e395bbf2c83325cf592397af">createJob</a>.</p>

      <div className="dl section attention">
        <div className="dt">Attention</div>
        <div className="dd">This method should be used for on-premise deployments only.</div>
      </div>

      <div className="dl params">
        <div className="dt">Parameters</div>

        <div className="dd">
          <table className="params">
            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">request\_</td>
              <td><a className="el" href="/content/api/cpp/structgpudb_1_1AdminAddRanksRequest">Request</a> object containing the parameters for the operation. </td>
            </tr>

            <tr>
              <td className="paramdir">\[out]</td>
              <td className="paramname">response\_</td>
              <td><a className="el" href="/content/api/cpp/structgpudb_1_1AdminAddRanksResponse">Response</a> object containing the results of the operation.</td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd"><a className="el" href="/content/api/cpp/structgpudb_1_1AdminAddRanksResponse">Response</a> object containing the result of the operation (initially passed in by reference). </div>
      </div>
    </div>
  </div>

  <div id="a4164e525e3c2551fe489a0504dc5e41f" />

  <h2 className="memtitle"><span className="permalink"><a href="#a4164e525e3c2551fe489a0504dc5e41f">◆ </a></span>adminAddRanks() <span className="overload">\[3/4]</span></h2>

  <div className="memitem">
    <div className="memproto">
      <table className="memname">
        <tr>
          <td className="memname"><a className="el" href="/content/api/cpp/structgpudb_1_1AdminAddRanksResponse">AdminAddRanksResponse</a> gpudb::GPUdb::adminAddRanks </td>
          <td>(</td>
          <td className="paramtype">const std::vector\< std::string > &</td>
          <td className="paramname"><span className="paramname"><span className="em">hosts</span></span>, </td>
        </tr>

        <tr>
          <td className="paramkey" />

          <td />

          <td className="paramtype">const std::vector\< std::map\< std::string, std::string > > &</td>
          <td className="paramname"><span className="paramname"><span className="em">configParams</span></span>, </td>
        </tr>

        <tr>
          <td className="paramkey" />

          <td />

          <td className="paramtype">const std::map\< std::string, std::string > &</td>
          <td className="paramname"><span className="paramname"><span className="em">options</span></span> ) const</td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Add one or more ranks to an existing Kinetica cluster. </p>
      <p>The new ranks will not contain any data initially (other than replicated tables) and will not be assigned any shards. To rebalance data and shards across the cluster, use <a className="el" href="#a8abfc8309fa07276967c988d6f316390">adminRebalance</a>.</p>
      <p>The database must be offline for this operation, see <a className="el" href="#a4d36ee318372b12d061552af95a2910c">adminOffline</a></p>
      <p>For example, if attempting to add three new ranks (two ranks on host 172.123.45.67 and one rank on host 172.123.45.68) to a Kinetica cluster with additional configuration parameters:</p>

      <ul>
        <li><span className="em arg">hosts</span> would be an array including 172.123.45.67 in the first two indices (signifying two ranks being added to host 172.123.45.67) and 172.123.45.68 in the last index (signifying one rank being added to host 172.123.45.67)</li>
        <li><span className="em arg">configParams</span> would be an array of maps, with each map corresponding to the ranks being added in <span className="em arg">hosts</span>. The key of each map would be the configuration parameter name and the value would be the parameter's value, e.g. '{"{"}"rank.gpu":"1"{"}"}'</li>
      </ul>

      <p>This endpoint's processing includes copying all replicated table data to the new rank(s) and therefore could take a long time. The API call may time out if run directly. It is recommended to run this endpoint asynchronously via <a className="el" href="#a2807b0831529b2f2e6fb554339670763">createJob</a>.</p>

      <div className="dl section attention">
        <div className="dt">Attention</div>
        <div className="dd">This method should be used for on-premise deployments only.</div>
      </div>

      <div className="dl params">
        <div className="dt">Parameters</div>

        <div className="dd">
          <table className="params">
            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">hosts</td>
              <td>Array of host IP addresses (matching a hostN.address from the gpudb.conf file), or host identifiers (e.g. 'host0' from the gpudb.conf file), on which to add ranks to the cluster. The hosts must already be in the cluster. If needed beforehand, to add a new host to the cluster use <a className="el" href="#ac9004ae1ab277c012171fc322245ebc6">adminAddHost</a>. Include the same entry as many times as there are ranks to add to the cluster, e.g., if two ranks on host 172.123.45.67 should be added, <span className="em arg">hosts</span> could look like '\["172.123.45.67", "172.123.45.67"]'. All ranks will be added simultaneously, i.e. they're not added in the order of this array. Each entry in this array corresponds to the entry at the same index in the <span className="em arg">configParams</span>. </td>
            </tr>

            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">configParams</td>
              <td>Array of maps containing configuration parameters to apply to the new ranks found in <span className="em arg">hosts</span>. For example, '{"{"}"rank.gpu":"2", "tier.ram.rank.limit":"10000000000"{"}"}'. Currently, the available parameters are rank-specific parameters in the <a href="/content/config/#config-main-network" target="_top">Network</a>, <a href="/content/config/#config-main-hardware" target="_top">Hardware</a>, <a href="/content/config/#config-main-text-search" target="_top">Text Search</a>, and <a href="/content/config/#config-main-ram-tier" target="_top">RAM Tiered Storage</a> sections in the gpudb.conf file, with the key exception of the 'rankN.host' settings in the Network section that will be determined by <span className="em arg">hosts</span> instead. Though many of these configuration parameters typically are affixed with 'rankN' in the gpudb.conf file (where N is the rank number), the 'N' should be omitted in <span className="em arg">configParams</span> as the new rank number(s) are not allocated until the ranks have been added to the cluster. Each entry in this array corresponds to the entry at the same index in the <span className="em arg">hosts</span>. This array must either be completely empty or have the same number of elements as the <span className="em arg">hosts</span>. An empty <span className="em arg">configParams</span> array will result in the new ranks being set with default parameters. </td>
            </tr>

            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">options</td>

              <td>
                Optional parameters.

                <ul>
                  <li>
                    <a className="el" href="/content/api/cpp/namespacegpudb#a0de2975076bb989ff78dcba20d5dffa7">admin\_add\_ranks\_dry\_run</a>: If <a className="el" href="/content/api/cpp/namespacegpudb#a44ef24a11304d580b4e98f46d1beea7d">true</a>, only validation checks will be performed. No ranks are added. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#a44ef24a11304d580b4e98f46d1beea7d">admin\_add\_ranks\_true</a> </li>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#a292a5b353184dc0b1e8385df128c0e0b">admin\_add\_ranks\_false</a> </li>
                    </ul>

                    The default value is <a className="el" href="/content/api/cpp/namespacegpudb#a292a5b353184dc0b1e8385df128c0e0b">admin\_add\_ranks\_false</a>.
                  </li>
                </ul>

                The default value is an empty map.
              </td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd"><a className="el" href="/content/api/cpp/structgpudb_1_1AdminAddRanksResponse">Response</a> object containing the result of the operation. </div>
      </div>
    </div>
  </div>

  <div id="a258d7e96b65d4a7220414f26858d2be3" />

  <h2 className="memtitle"><span className="permalink"><a href="#a258d7e96b65d4a7220414f26858d2be3">◆ </a></span>adminAddRanks() <span className="overload">\[4/4]</span></h2>

  <div className="memitem">
    <div className="memproto">
      <table className="memname">
        <tr>
          <td className="memname"><a className="el" href="/content/api/cpp/structgpudb_1_1AdminAddRanksResponse">AdminAddRanksResponse</a> & gpudb::GPUdb::adminAddRanks </td>
          <td>(</td>
          <td className="paramtype">const std::vector\< std::string > &</td>
          <td className="paramname"><span className="paramname"><span className="em">hosts</span></span>, </td>
        </tr>

        <tr>
          <td className="paramkey" />

          <td />

          <td className="paramtype">const std::vector\< std::map\< std::string, std::string > > &</td>
          <td className="paramname"><span className="paramname"><span className="em">configParams</span></span>, </td>
        </tr>

        <tr>
          <td className="paramkey" />

          <td />

          <td className="paramtype">const std::map\< std::string, std::string > &</td>
          <td className="paramname"><span className="paramname"><span className="em">options</span></span>, </td>
        </tr>

        <tr>
          <td className="paramkey" />

          <td />

          <td className="paramtype"><a className="el" href="/content/api/cpp/structgpudb_1_1AdminAddRanksResponse">AdminAddRanksResponse</a> &</td>
          <td className="paramname"><span className="paramname"><span className="em">response\_</span></span> ) const</td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Add one or more ranks to an existing Kinetica cluster. </p>
      <p>The new ranks will not contain any data initially (other than replicated tables) and will not be assigned any shards. To rebalance data and shards across the cluster, use <a className="el" href="#a8abfc8309fa07276967c988d6f316390">adminRebalance</a>.</p>
      <p>The database must be offline for this operation, see <a className="el" href="#a4d36ee318372b12d061552af95a2910c">adminOffline</a></p>
      <p>For example, if attempting to add three new ranks (two ranks on host 172.123.45.67 and one rank on host 172.123.45.68) to a Kinetica cluster with additional configuration parameters:</p>

      <ul>
        <li><span className="em arg">hosts</span> would be an array including 172.123.45.67 in the first two indices (signifying two ranks being added to host 172.123.45.67) and 172.123.45.68 in the last index (signifying one rank being added to host 172.123.45.67)</li>
        <li><span className="em arg">configParams</span> would be an array of maps, with each map corresponding to the ranks being added in <span className="em arg">hosts</span>. The key of each map would be the configuration parameter name and the value would be the parameter's value, e.g. '{"{"}"rank.gpu":"1"{"}"}'</li>
      </ul>

      <p>This endpoint's processing includes copying all replicated table data to the new rank(s) and therefore could take a long time. The API call may time out if run directly. It is recommended to run this endpoint asynchronously via <a className="el" href="#a2807b0831529b2f2e6fb554339670763">createJob</a>.</p>

      <div className="dl section attention">
        <div className="dt">Attention</div>
        <div className="dd">This method should be used for on-premise deployments only.</div>
      </div>

      <div className="dl params">
        <div className="dt">Parameters</div>

        <div className="dd">
          <table className="params">
            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">hosts</td>
              <td>Array of host IP addresses (matching a hostN.address from the gpudb.conf file), or host identifiers (e.g. 'host0' from the gpudb.conf file), on which to add ranks to the cluster. The hosts must already be in the cluster. If needed beforehand, to add a new host to the cluster use <a className="el" href="#ac9004ae1ab277c012171fc322245ebc6">adminAddHost</a>. Include the same entry as many times as there are ranks to add to the cluster, e.g., if two ranks on host 172.123.45.67 should be added, <span className="em arg">hosts</span> could look like '\["172.123.45.67", "172.123.45.67"]'. All ranks will be added simultaneously, i.e. they're not added in the order of this array. Each entry in this array corresponds to the entry at the same index in the <span className="em arg">configParams</span>. </td>
            </tr>

            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">configParams</td>
              <td>Array of maps containing configuration parameters to apply to the new ranks found in <span className="em arg">hosts</span>. For example, '{"{"}"rank.gpu":"2", "tier.ram.rank.limit":"10000000000"{"}"}'. Currently, the available parameters are rank-specific parameters in the <a href="/content/config/#config-main-network" target="_top">Network</a>, <a href="/content/config/#config-main-hardware" target="_top">Hardware</a>, <a href="/content/config/#config-main-text-search" target="_top">Text Search</a>, and <a href="/content/config/#config-main-ram-tier" target="_top">RAM Tiered Storage</a> sections in the gpudb.conf file, with the key exception of the 'rankN.host' settings in the Network section that will be determined by <span className="em arg">hosts</span> instead. Though many of these configuration parameters typically are affixed with 'rankN' in the gpudb.conf file (where N is the rank number), the 'N' should be omitted in <span className="em arg">configParams</span> as the new rank number(s) are not allocated until the ranks have been added to the cluster. Each entry in this array corresponds to the entry at the same index in the <span className="em arg">hosts</span>. This array must either be completely empty or have the same number of elements as the <span className="em arg">hosts</span>. An empty <span className="em arg">configParams</span> array will result in the new ranks being set with default parameters. </td>
            </tr>

            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">options</td>

              <td>
                Optional parameters.

                <ul>
                  <li>
                    <a className="el" href="/content/api/cpp/namespacegpudb#a0de2975076bb989ff78dcba20d5dffa7">admin\_add\_ranks\_dry\_run</a>: If <a className="el" href="/content/api/cpp/namespacegpudb#a44ef24a11304d580b4e98f46d1beea7d">true</a>, only validation checks will be performed. No ranks are added. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#a44ef24a11304d580b4e98f46d1beea7d">admin\_add\_ranks\_true</a> </li>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#a292a5b353184dc0b1e8385df128c0e0b">admin\_add\_ranks\_false</a> </li>
                    </ul>

                    The default value is <a className="el" href="/content/api/cpp/namespacegpudb#a292a5b353184dc0b1e8385df128c0e0b">admin\_add\_ranks\_false</a>.
                  </li>
                </ul>

                The default value is an empty map.
              </td>
            </tr>

            <tr>
              <td className="paramdir">\[out]</td>
              <td className="paramname">response\_</td>
              <td><a className="el" href="/content/api/cpp/structgpudb_1_1AdminAddRanksResponse">Response</a> object containing the results of the operation.</td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd"><a className="el" href="/content/api/cpp/structgpudb_1_1AdminAddRanksResponse">Response</a> object containing the result of the operation (initially passed in by reference). </div>
      </div>
    </div>
  </div>
</div>
