pub async fn admin_remove_host( &self, host: String, ) -> Result<AdminRemoveHostResponse, KineticaError>
Removes a host from the cluster.
Removes a host from an existing cluster. If the host to be removed has any ranks running on it, the ranks must be removed using /admin/remove/ranks or manually switched over to a new host using /admin/switchover prior to host removal. If the host to be removed has the graph server or SQL planner running on it, these must be manually switched over to a new host using /admin/switchover.
host- Identifies the host this applies to. Can be the host address, or formatted as ‘hostN’ where N is the host number as specified in gpudb.conf.
pub async fn admin_remove_host_with_opts( &self, host: String, options: AdminRemoveHostRequestOptions, ) -> Result<AdminRemoveHostResponse, KineticaError>
Removes a host from the cluster.
Removes a host from an existing cluster. If the host to be removed has any ranks running on it, the ranks must be removed using /admin/remove/ranks or manually switched over to a new host using /admin/switchover prior to host removal. If the host to be removed has the graph server or SQL planner running on it, these must be manually switched over to a new host using /admin/switchover.
host- Identifies the host this applies to. Can be the host address, or formatted as ‘hostN’ where N is the host number as specified in gpudb.conf.options- The optional parameters; any left unset take the server’s defaults.
pub async fn admin_remove_host_raw( &self, request: &AdminRemoveHostRequest, ) -> Result<AdminRemoveHostResponse, KineticaError>
Sends a pre-built AdminRemoveHostRequest to the /admin/remove/host endpoint.
pub async fn admin_remove_host_from_url( &self, url: &str, request: &AdminRemoveHostRequest, ) -> Result<AdminRemoveHostResponse, KineticaError>
Sends a pre-built AdminRemoveHostRequest to a specific worker URL, bypassing HA head-node selection. Used for multi-head access.