public class AdminRemoveRanksRequest extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.adminRemoveRanks(AdminRemoveRanksRequest)
.
Remove one or more ranks from the cluster. All data in the ranks to be
removed is rebalanced to other ranks before the node is removed unless the
rebalance_sharded_data
or rebalance_unsharded_data
parameters are set to false
in the options
.
Due to the rebalancing, this endpoint may take a long time to run, depending
on the amount of data in the system. The API call may time out if run
directly. It is recommended to run this endpoint asynchronously via GPUdb.createJob(CreateJobRequest)
.
Modifier and Type | Class and Description |
---|---|
static class |
AdminRemoveRanksRequest.Options
Optional parameters.
|
Constructor and Description |
---|
AdminRemoveRanksRequest()
Constructs an AdminRemoveRanksRequest object with default parameters.
|
AdminRemoveRanksRequest(List<Integer> ranks,
Map<String,String> options)
Constructs an AdminRemoveRanksRequest object with the specified
parameters.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Object |
get(int index)
This method supports the Avro framework and is not intended to be called
directly by the user.
|
static org.apache.avro.Schema |
getClassSchema()
This method supports the Avro framework and is not intended to be called
directly by the user.
|
Map<String,String> |
getOptions() |
List<Integer> |
getRanks() |
org.apache.avro.Schema |
getSchema()
This method supports the Avro framework and is not intended to be called
directly by the user.
|
int |
hashCode() |
void |
put(int index,
Object value)
This method supports the Avro framework and is not intended to be called
directly by the user.
|
AdminRemoveRanksRequest |
setOptions(Map<String,String> options) |
AdminRemoveRanksRequest |
setRanks(List<Integer> ranks) |
String |
toString() |
public AdminRemoveRanksRequest()
public AdminRemoveRanksRequest(List<Integer> ranks, Map<String,String> options)
ranks
- Rank numbers of the ranks to be removed from the cluster.options
- Optional parameters.
REBALANCE_SHARDED_DATA
: When true
, data with
primary keys or shard keys will be rebalanced to other
ranks prior to rank removal. Note that for big clusters,
this data transfer could be time consuming and result in
delayed query responses.
Supported values:
The default value is TRUE
.
REBALANCE_UNSHARDED_DATA
: When true
, unsharded
data (data without primary keys and without shard keys)
will be rebalanced to other ranks prior to rank removal.
Note that for big clusters, this data transfer could be
time consuming and result in delayed query responses.
Supported values:
The default value is TRUE
.
AGGRESSIVENESS
: Influences how much data to send per
rebalance round, during the rebalance portion of
removing ranks. A higher aggressiveness setting will
complete the rebalance faster. A lower aggressiveness
setting will take longer, but allow for better
interleaving between the rebalance and other queries.
Allowed values are 1 through 10. The default value is
'1'.
Map
.public static org.apache.avro.Schema getClassSchema()
public List<Integer> getRanks()
public AdminRemoveRanksRequest setRanks(List<Integer> ranks)
ranks
- Rank numbers of the ranks to be removed from the cluster.this
to mimic the builder pattern.public Map<String,String> getOptions()
REBALANCE_SHARDED_DATA
: When true
, data with primary
keys or shard keys will be rebalanced to other ranks prior to
rank removal. Note that for big clusters, this data transfer
could be time consuming and result in delayed query responses.
Supported values:
The default value is TRUE
.
REBALANCE_UNSHARDED_DATA
: When true
, unsharded data
(data without primary keys and without shard keys) will be
rebalanced to other ranks prior to rank removal. Note that for
big clusters, this data transfer could be time consuming and
result in delayed query responses.
Supported values:
The default value is TRUE
.
AGGRESSIVENESS
: Influences how much data to send per rebalance
round, during the rebalance portion of removing ranks. A higher
aggressiveness setting will complete the rebalance faster. A
lower aggressiveness setting will take longer, but allow for
better interleaving between the rebalance and other queries.
Allowed values are 1 through 10. The default value is '1'.
Map
.public AdminRemoveRanksRequest setOptions(Map<String,String> options)
options
- Optional parameters.
REBALANCE_SHARDED_DATA
: When true
, data with
primary keys or shard keys will be rebalanced to other
ranks prior to rank removal. Note that for big clusters,
this data transfer could be time consuming and result in
delayed query responses.
Supported values:
The default value is TRUE
.
REBALANCE_UNSHARDED_DATA
: When true
, unsharded
data (data without primary keys and without shard keys)
will be rebalanced to other ranks prior to rank removal.
Note that for big clusters, this data transfer could be
time consuming and result in delayed query responses.
Supported values:
The default value is TRUE
.
AGGRESSIVENESS
: Influences how much data to send per
rebalance round, during the rebalance portion of
removing ranks. A higher aggressiveness setting will
complete the rebalance faster. A lower aggressiveness
setting will take longer, but allow for better
interleaving between the rebalance and other queries.
Allowed values are 1 through 10. The default value is
'1'.
Map
.this
to mimic the builder pattern.public org.apache.avro.Schema getSchema()
getSchema
in interface org.apache.avro.generic.GenericContainer
public Object get(int index)
get
in interface org.apache.avro.generic.IndexedRecord
index
- the position of the field to getIndexOutOfBoundsException
public void put(int index, Object value)
put
in interface org.apache.avro.generic.IndexedRecord
index
- the position of the field to setvalue
- the value to setIndexOutOfBoundsException
Copyright © 2020. All rights reserved.