public static final class AdminRebalanceRequest.Options extends Object
REBALANCE_SHARDED_DATA
: If true
, sharded data will be
rebalanced approximately equally across the cluster. 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
: If true
, unsharded data (data without
primary keys and without shard keys) will be rebalanced approximately
equally across the cluster. 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
.
TABLE_WHITELIST
: Comma-separated list of unsharded table names to
rebalance. Not applicable to sharded tables because they are always
balanced in accordance with their primary key or shard key. Cannot be
used simultaneously with table_blacklist
.
TABLE_BLACKLIST
: Comma-separated list of unsharded table names to not
rebalance. Not applicable to sharded tables because they are always
balanced in accordance with their primary key or shard key. Cannot be
used simultaneously with table_whitelist
.
AGGRESSIVENESS
: Influences how much data to send per rebalance round.
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'.
COMPACT_AFTER_REBALANCE
: Perform compaction of deleted records once the
rebalance completes, to reclaim memory and disk space. Default is true,
unless repair_incorrectly_sharded_data
is set to true
.
Supported values:
The default value is TRUE
.
COMPACT_ONLY
: Only perform compaction, do not rebalance. Default is
false.
Supported values:
The default value is FALSE
.
REPAIR_INCORRECTLY_SHARDED_DATA
: Scans for any data sharded incorrectly
and re-routes the correct location. This can be done as part of a
typical rebalance after expanding the cluster, or in a standalone
fashion when it is believed that data is sharded incorrectly somewhere
in the cluster. Compaction will not be performed by default when this is
enabled. This option may also lengthen rebalance time, and increase the
memory used by the rebalance.
Supported values:
The default value is FALSE
.
Map
.
A set of string constants for the parameter options
.Modifier and Type | Field and Description |
---|---|
static String |
AGGRESSIVENESS
Influences how much data to send per rebalance round.
|
static String |
COMPACT_AFTER_REBALANCE
Perform compaction of deleted records once the rebalance completes,
to reclaim memory and disk space.
|
static String |
COMPACT_ONLY
Only perform compaction, do not rebalance.
|
static String |
FALSE |
static String |
REBALANCE_SHARDED_DATA
If
true , sharded data will be rebalanced approximately
equally across the cluster. |
static String |
REBALANCE_UNSHARDED_DATA
If
true , unsharded data (data without primary keys and
without shard keys) will be rebalanced approximately equally across
the cluster. |
static String |
REPAIR_INCORRECTLY_SHARDED_DATA
Scans for any data sharded incorrectly and re-routes the correct
location.
|
static String |
TABLE_BLACKLIST
Comma-separated list of unsharded table names to not rebalance.
|
static String |
TABLE_WHITELIST
Comma-separated list of unsharded table names to rebalance.
|
static String |
TRUE |
public static final String REBALANCE_SHARDED_DATA
true
, sharded data will be rebalanced approximately
equally across the cluster. 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
.public static final String TRUE
public static final String FALSE
public static final String REBALANCE_UNSHARDED_DATA
true
, unsharded data (data without primary keys and
without shard keys) will be rebalanced approximately equally across
the cluster. 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
.public static final String TABLE_WHITELIST
table_blacklist
.public static final String TABLE_BLACKLIST
table_whitelist
.public static final String AGGRESSIVENESS
public static final String COMPACT_AFTER_REBALANCE
repair_incorrectly_sharded_data
is set to true
.
Supported values:
The default value is TRUE
.public static final String COMPACT_ONLY
FALSE
.public static final String REPAIR_INCORRECTLY_SHARDED_DATA
FALSE
.Copyright © 2020. All rights reserved.