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

# adminAddHost

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

  <h2 className="memtitle"><span className="permalink"><a href="#a9ea80722f2b7f5f7ade6fc07c8b33dc3">◆ </a></span>adminAddHost() <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_1AdminAddHostResponse">AdminAddHostResponse</a> gpudb::GPUdb::adminAddHost </td>
          <td>(</td>
          <td className="paramtype">const <a className="el" href="/content/api/cpp/structgpudb_1_1AdminAddHostRequest">AdminAddHostRequest</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>Adds a host to an existing cluster. </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_1AdminAddHostRequest">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_1AdminAddHostResponse">Response</a> object containing the result of the operation. </div>
      </div>
    </div>
  </div>

  <div id="aca748a594f8d487df215d9154157e4da" />

  <h2 className="memtitle"><span className="permalink"><a href="#aca748a594f8d487df215d9154157e4da">◆ </a></span>adminAddHost() <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_1AdminAddHostResponse">AdminAddHostResponse</a> & gpudb::GPUdb::adminAddHost </td>
          <td>(</td>
          <td className="paramtype">const <a className="el" href="/content/api/cpp/structgpudb_1_1AdminAddHostRequest">AdminAddHostRequest</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_1AdminAddHostResponse">AdminAddHostResponse</a> &</td>
          <td className="paramname"><span className="paramname"><span className="em">response\_</span></span> ) const</td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Adds a host to an existing cluster. </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_1AdminAddHostRequest">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_1AdminAddHostResponse">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_1AdminAddHostResponse">Response</a> object containing the result of the operation (initially passed in by reference). </div>
      </div>
    </div>
  </div>

  <div id="ac9004ae1ab277c012171fc322245ebc6" />

  <h2 className="memtitle"><span className="permalink"><a href="#ac9004ae1ab277c012171fc322245ebc6">◆ </a></span>adminAddHost() <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_1AdminAddHostResponse">AdminAddHostResponse</a> gpudb::GPUdb::adminAddHost </td>
          <td>(</td>
          <td className="paramtype">const std::string &</td>
          <td className="paramname"><span className="paramname"><span className="em">hostAddress</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>Adds a host to an existing cluster. </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">hostAddress</td>
              <td>IP address of the host that will be added to the cluster. This host must have installed the same version of Kinetica as the cluster to which it is being added. </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#a6b9c4a4f28ff350e583ebabdbb9ea9d0">admin\_add\_host\_dry\_run</a>: If set to <a className="el" href="/content/api/cpp/namespacegpudb#afe33956c9bcada52ea76e180fc6207c4">true</a>, only validation checks will be performed. No host is added. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#afe33956c9bcada52ea76e180fc6207c4">admin\_add\_host\_true</a> </li>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#a1a027fc195451fec3d35f4d665d1d1d0">admin\_add\_host\_false</a> </li>
                    </ul>

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

                  <li>
                    <a className="el" href="/content/api/cpp/namespacegpudb#a9d5d5f4e173c940b5b47e5582e18604c">admin\_add\_host\_accepts\_failover</a>: If set to <a className="el" href="/content/api/cpp/namespacegpudb#afe33956c9bcada52ea76e180fc6207c4">true</a>, the host will accept processes (ranks, graph server, etc.) in the event of a failover on another node in the cluster. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#afe33956c9bcada52ea76e180fc6207c4">admin\_add\_host\_true</a> </li>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#a1a027fc195451fec3d35f4d665d1d1d0">admin\_add\_host\_false</a> </li>
                    </ul>

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

                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#ae458957af8c057509db05fa618d440a0">admin\_add\_host\_public\_address</a>: The publicly-accessible IP address for the host being added, typically specified for clients using multi-head operations. This setting is required if any other host(s) in the cluster specify a public address. </li>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#a54bc9ac75ad2fee1ec35f8d1bcbf871a">admin\_add\_host\_host\_manager\_public\_url</a>: The publicly-accessible full path URL to the host manager on the host being added, e.g., '<a href="http://172.123.45.67:9300'">[http://172.123.45.67:9300](http://172.123.45.67:9300)'</a>. The default host manager port can be found in the <a href="/content/install/shared/ports/" target="_top">list of ports</a> used by Kinetica. </li>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#ab668ed4429090f5a90dd9d6b09cf7654">admin\_add\_host\_ram\_limit</a>: The desired RAM limit for the host being added, i.e. the sum of RAM usage for all processes on the host will not be able to exceed this value. Supported units: K (thousand), KB (kilobytes), M (million), MB (megabytes), G (billion), GB (gigabytes); if no unit is provided, the value is assumed to be in bytes. For example, if <a className="el" href="/content/api/cpp/namespacegpudb#ab668ed4429090f5a90dd9d6b09cf7654">ram\_limit</a> is set to 10M, the resulting RAM limit is 10 million bytes. Set <a className="el" href="/content/api/cpp/namespacegpudb#ab668ed4429090f5a90dd9d6b09cf7654">ram\_limit</a> to -1 to have no RAM limit. </li>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#a3cab389d3f406fd4ae5d4578e7d25458">admin\_add\_host\_gpus</a>: Comma-delimited list of GPU indices (starting at 1) that are eligible for running worker processes. If left blank, all GPUs on the host being added will be eligible. </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_1AdminAddHostResponse">Response</a> object containing the result of the operation. </div>
      </div>
    </div>
  </div>

  <div id="ada6bcf7fc6df22d912b33dba0459dd50" />

  <h2 className="memtitle"><span className="permalink"><a href="#ada6bcf7fc6df22d912b33dba0459dd50">◆ </a></span>adminAddHost() <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_1AdminAddHostResponse">AdminAddHostResponse</a> & gpudb::GPUdb::adminAddHost </td>
          <td>(</td>
          <td className="paramtype">const std::string &</td>
          <td className="paramname"><span className="paramname"><span className="em">hostAddress</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_1AdminAddHostResponse">AdminAddHostResponse</a> &</td>
          <td className="paramname"><span className="paramname"><span className="em">response\_</span></span> ) const</td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Adds a host to an existing cluster. </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">hostAddress</td>
              <td>IP address of the host that will be added to the cluster. This host must have installed the same version of Kinetica as the cluster to which it is being added. </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#a6b9c4a4f28ff350e583ebabdbb9ea9d0">admin\_add\_host\_dry\_run</a>: If set to <a className="el" href="/content/api/cpp/namespacegpudb#afe33956c9bcada52ea76e180fc6207c4">true</a>, only validation checks will be performed. No host is added. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#afe33956c9bcada52ea76e180fc6207c4">admin\_add\_host\_true</a> </li>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#a1a027fc195451fec3d35f4d665d1d1d0">admin\_add\_host\_false</a> </li>
                    </ul>

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

                  <li>
                    <a className="el" href="/content/api/cpp/namespacegpudb#a9d5d5f4e173c940b5b47e5582e18604c">admin\_add\_host\_accepts\_failover</a>: If set to <a className="el" href="/content/api/cpp/namespacegpudb#afe33956c9bcada52ea76e180fc6207c4">true</a>, the host will accept processes (ranks, graph server, etc.) in the event of a failover on another node in the cluster. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#afe33956c9bcada52ea76e180fc6207c4">admin\_add\_host\_true</a> </li>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#a1a027fc195451fec3d35f4d665d1d1d0">admin\_add\_host\_false</a> </li>
                    </ul>

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

                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#ae458957af8c057509db05fa618d440a0">admin\_add\_host\_public\_address</a>: The publicly-accessible IP address for the host being added, typically specified for clients using multi-head operations. This setting is required if any other host(s) in the cluster specify a public address. </li>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#a54bc9ac75ad2fee1ec35f8d1bcbf871a">admin\_add\_host\_host\_manager\_public\_url</a>: The publicly-accessible full path URL to the host manager on the host being added, e.g., '<a href="http://172.123.45.67:9300'">[http://172.123.45.67:9300](http://172.123.45.67:9300)'</a>. The default host manager port can be found in the <a href="/content/install/shared/ports/" target="_top">list of ports</a> used by Kinetica. </li>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#ab668ed4429090f5a90dd9d6b09cf7654">admin\_add\_host\_ram\_limit</a>: The desired RAM limit for the host being added, i.e. the sum of RAM usage for all processes on the host will not be able to exceed this value. Supported units: K (thousand), KB (kilobytes), M (million), MB (megabytes), G (billion), GB (gigabytes); if no unit is provided, the value is assumed to be in bytes. For example, if <a className="el" href="/content/api/cpp/namespacegpudb#ab668ed4429090f5a90dd9d6b09cf7654">ram\_limit</a> is set to 10M, the resulting RAM limit is 10 million bytes. Set <a className="el" href="/content/api/cpp/namespacegpudb#ab668ed4429090f5a90dd9d6b09cf7654">ram\_limit</a> to -1 to have no RAM limit. </li>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#a3cab389d3f406fd4ae5d4578e7d25458">admin\_add\_host\_gpus</a>: Comma-delimited list of GPU indices (starting at 1) that are eligible for running worker processes. If left blank, all GPUs on the host being added will be eligible. </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_1AdminAddHostResponse">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_1AdminAddHostResponse">Response</a> object containing the result of the operation (initially passed in by reference). </div>
      </div>
    </div>
  </div>
</div>
