Source
pub async fn admin_switchover( &self, processes: Vec<String>, destinations: Vec<String>, ) -> Result<AdminSwitchoverResponse, KineticaError>
Manually switch over one or more processes to another host
Manually switch over one or more processes to another host. Individual ranks or entire hosts may be moved to another host.
processes- Indicates the process identifier to switch over to another host. Options are ‘hostN’ and ‘rankN’ where ‘N’ corresponds to the number associated with a host or rank in the Network section of the gpudb.conf file; e.g., ‘host[N].address’ or ‘rank[N].host’. If ‘hostN’ is provided, all processes on that host will be moved to another host. Each entry in this array will be switched over to the corresponding host entry at the same index indestinations.destinations- Indicates to which host to switch over each corresponding process given inprocesses. Each index must be specified as ‘hostN’ where ‘N’ corresponds to the number associated with a host or rank in the Network section of the gpudb.conf file; e.g., ‘host[N].address’. Each entry in this array will receive the corresponding process entry at the same index inprocesses.
Source
pub async fn admin_switchover_with_opts( &self, processes: Vec<String>, destinations: Vec<String>, options: AdminSwitchoverRequestOptions, ) -> Result<AdminSwitchoverResponse, KineticaError>
Manually switch over one or more processes to another host
Manually switch over one or more processes to another host. Individual ranks or entire hosts may be moved to another host.
processes- Indicates the process identifier to switch over to another host. Options are ‘hostN’ and ‘rankN’ where ‘N’ corresponds to the number associated with a host or rank in the Network section of the gpudb.conf file; e.g., ‘host[N].address’ or ‘rank[N].host’. If ‘hostN’ is provided, all processes on that host will be moved to another host. Each entry in this array will be switched over to the corresponding host entry at the same index indestinations.destinations- Indicates to which host to switch over each corresponding process given inprocesses. Each index must be specified as ‘hostN’ where ‘N’ corresponds to the number associated with a host or rank in the Network section of the gpudb.conf file; e.g., ‘host[N].address’. Each entry in this array will receive the corresponding process entry at the same index inprocesses.options- The optional parameters; any left unset take the server’s defaults.
Source
pub async fn admin_switchover_raw( &self, request: &AdminSwitchoverRequest, ) -> Result<AdminSwitchoverResponse, KineticaError>
Sends a pre-built AdminSwitchoverRequest to the /admin/switchover endpoint.
Source
pub async fn admin_switchover_from_url( &self, url: &str, request: &AdminSwitchoverRequest, ) -> Result<AdminSwitchoverResponse, KineticaError>
Sends a pre-built AdminSwitchoverRequest to a specific worker URL, bypassing HA head-node selection. Used for multi-head access.