GPUdb C++ API  Version 7.1.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
gpudb::AdminRebalanceRequest Struct Reference

A set of input parameters for const. More...

#include <gpudb/protocol/admin_rebalance.h>

Public Member Functions

 AdminRebalanceRequest ()
 Constructs an AdminRebalanceRequest object with default parameter values. More...
 
 AdminRebalanceRequest (const std::map< std::string, std::string > &options_)
 Constructs an AdminRebalanceRequest object with the specified parameters. More...
 

Public Attributes

std::map< std::string,
std::string > 
options
 

Detailed Description

A set of input parameters for const.

Rebalance the data in the cluster so that all nodes contain an equal number of records approximately and/or rebalance the shards to be equally distributed (as much as possible) across all the ranks.

The database must be offline for this operation, see const

  • If const is invoked after a change is made to the cluster, e.g., a host was added or removed, sharded data will be evenly redistributed across the cluster by number of shards per rank while unsharded data will be redistributed across the cluster by data size per rank
  • If const is invoked at some point when unsharded data (a.k.a. randomly-sharded) in the cluster is unevenly distributed over time, sharded data will not move while unsharded data will be redistributed across the cluster by data size per rank

NOTE: Replicated data will not move as a result of this call

This endpoint's processing time depends on the amount of data in the system, thus the API call may time out if run directly. It is recommended to run this endpoint asynchronously via const.

Definition at line 49 of file admin_rebalance.h.

Constructor & Destructor Documentation

gpudb::AdminRebalanceRequest::AdminRebalanceRequest ( )
inline

Constructs an AdminRebalanceRequest object with default parameter values.

Definition at line 56 of file admin_rebalance.h.

gpudb::AdminRebalanceRequest::AdminRebalanceRequest ( const std::map< std::string, std::string > &  options_)
inline

Constructs an AdminRebalanceRequest object with the specified parameters.

Parameters
[in]options_Optional parameters.

Definition at line 173 of file admin_rebalance.h.

Member Data Documentation

std::map<std::string, std::string> gpudb::AdminRebalanceRequest::options

Definition at line 178 of file admin_rebalance.h.


The documentation for this struct was generated from the following file: