public class AdminRemoveRanksRequest extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.adminRemoveRanks(AdminRemoveRanksRequest)
.
Remove one or more ranks from an existing Kinetica cluster. All data
will be rebalanced to other ranks before the rank(s) is removed unless the
rebalance_sharded_data
or
rebalance_unsharded_data
parameters are set to
false
in the
options
, in which case the corresponding
sharded
data and/or unsharded data (a.k.a.
randomly-sharded) will be deleted.
The database must be offline for this operation, see GPUdb.adminOffline(AdminOfflineRequest)
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 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<String> 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<String> |
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<String> ranks) |
String |
toString() |
public AdminRemoveRanksRequest()
public AdminRemoveRanksRequest(List<String> ranks, Map<String,String> options)
ranks
- Each array value designates one or more ranks to remove
from the cluster. Values can be formatted as 'rankN' for a
specific rank, 'hostN' (from the gpudb.conf file) to
remove all ranks on that host, or the host IP address
(hostN.address from the gpub.conf file) which also removes
all ranks on that host. Rank 0 (the head rank) cannot be
removed (but can be moved to another host using GPUdb.adminSwitchover(AdminSwitchoverRequest)
).
At least one worker rank must be left in the cluster after
the operation.options
- Optional parameters.
REBALANCE_SHARDED_DATA
: If true
, sharded data will be rebalanced
approximately equally across the cluster. Note that for
clusters with large amounts of sharded data, this data
transfer could be time consuming and result in delayed
query responses.
Supported values:
The default value is TRUE
.
REBALANCE_UNSHARDED_DATA
: If true
, unsharded
data (a.k.a. randomly-sharded) will be rebalanced
approximately equally across the cluster. Note that for
clusters with large amounts of unsharded data, 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 is moved at a
time during rebalance. A higher aggressiveness
will complete the rebalance faster. A lower aggressiveness
will take longer but allow for better
interleaving between the rebalance and other queries.
Valid values are constants from 1 (lowest) to 10
(highest). The default value is '10'.
Map
.public static org.apache.avro.Schema getClassSchema()
public List<String> getRanks()
GPUdb.adminSwitchover(AdminSwitchoverRequest)
). At
least one worker rank must be left in the cluster after the
operation.public AdminRemoveRanksRequest setRanks(List<String> ranks)
ranks
- Each array value designates one or more ranks to remove
from the cluster. Values can be formatted as 'rankN' for a
specific rank, 'hostN' (from the gpudb.conf file) to
remove all ranks on that host, or the host IP address
(hostN.address from the gpub.conf file) which also removes
all ranks on that host. Rank 0 (the head rank) cannot be
removed (but can be moved to another host using GPUdb.adminSwitchover(AdminSwitchoverRequest)
).
At least one worker rank must be left in the cluster after
the operation.this
to mimic the builder pattern.public Map<String,String> getOptions()
REBALANCE_SHARDED_DATA
: If true
, sharded data will be rebalanced approximately
equally across the cluster. Note that for clusters with large
amounts of sharded data, this data transfer could be time
consuming and result in delayed query responses.
Supported values:
The default value is TRUE
.
REBALANCE_UNSHARDED_DATA
: If true
, unsharded data
(a.k.a. randomly-sharded) will be rebalanced
approximately equally across the cluster. Note that for clusters
with large amounts of unsharded data, 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 is moved at a time
during rebalance. A higher aggressiveness
will complete
the rebalance faster. A lower aggressiveness
will take
longer but allow for better interleaving between the rebalance
and other queries. Valid values are constants from 1 (lowest) to
10 (highest). The default value is '10'.
Map
.public AdminRemoveRanksRequest setOptions(Map<String,String> options)
options
- Optional parameters.
REBALANCE_SHARDED_DATA
: If true
, sharded data will be rebalanced
approximately equally across the cluster. Note that for
clusters with large amounts of sharded data, this data
transfer could be time consuming and result in delayed
query responses.
Supported values:
The default value is TRUE
.
REBALANCE_UNSHARDED_DATA
: If true
, unsharded
data (a.k.a. randomly-sharded) will be rebalanced
approximately equally across the cluster. Note that for
clusters with large amounts of unsharded data, 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 is moved at a
time during rebalance. A higher aggressiveness
will complete the rebalance faster. A lower aggressiveness
will take longer but allow for better
interleaving between the rebalance and other queries.
Valid values are constants from 1 (lowest) to 10
(highest). The default value is '10'.
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 © 2024. All rights reserved.