Skip to main content
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 in destinations.
  • destinations - Indicates to which host to switch over each corresponding process given in processes. 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 in processes.

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 in destinations.
  • destinations - Indicates to which host to switch over each corresponding process given in processes. 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 in processes.
  • options - The optional parameters; any left unset take the server’s defaults.

Sends a pre-built AdminSwitchoverRequest to the /admin/switchover endpoint.

Sends a pre-built AdminSwitchoverRequest to a specific worker URL, bypassing HA head-node selection. Used for multi-head access.