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

# admin_add_host

<div className="kinetica-pydoc">
  <div className="dl py method">
    <div className="dt sig sig-object py" id="gpudb.GPUdb.admin_add_host"> <span className="sig-name descname"><span className="pre">admin\_add\_host</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">host\_address</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">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#L14309"><span className="viewcode-link"><span className="pre">\[source]</span></span></a></div>

    <div className="dd">
      <p>Adds a host to an existing cluster.</p>

      <div className="admonition note">
        <p className="admonition-title">Note</p>
        <p>This method should be used for on-premise deployments only.</p>
      </div>

      <p><strong>Parameters</strong></p>

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

            <div className="dd">
              <p>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.</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>dry\_run</strong> – If set to <span className="em">true</span>, only validation checks will be performed. No host is added. 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>accepts\_failover</strong> – If set to <span className="em">true</span>, the host will accept processes (ranks, graph server, etc.) in the event of a failover on another node in the cluster. 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>public\_address</strong> – 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.</p>
                </li>

                <li>
                  <p><strong>host\_manager\_public\_url</strong> – The publicly-accessible full path URL to the host manager on the host being added, e.g., ‘<a className="reference external" 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 className="reference external" href="/content/install/shared/ports/">list of ports</a> used by Kinetica.</p>
                </li>

                <li>
                  <p><strong>ram\_limit</strong> – 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 <span className="em">ram\_limit</span> is set to 10M, the resulting RAM limit is 10 million bytes. Set <span className="em">ram\_limit</span> to -1 to have no RAM limit.</p>
                </li>

                <li>
                  <p><strong>gpus</strong> – 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.</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">added\_host (<span className="em">str</span>) –</div>

            <div className="dd">
              <p>Identifier for the newly added host, of the format ‘hostN’ where N is the integer identifier of that host. Note that the host identifier is transient, i.e. it may change in the future if other hosts are removed.</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>
