Package com.gpudb.protocol
Class AdminRebalanceRequest.Options
- java.lang.Object
-
- com.gpudb.protocol.AdminRebalanceRequest.Options
-
- Enclosing class:
- AdminRebalanceRequest
public static final class AdminRebalanceRequest.Options extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringAGGRESSIVENESSInfluences how much data is moved at a time during rebalance.static StringCOMPACT_AFTER_REBALANCEPerform compaction of deleted records once the rebalance completes to reclaim memory and disk space.static StringCOMPACT_ONLYIf set toTRUE, ignore rebalance options and attempt to perform compaction of deleted records to reclaim memory and disk space without rebalancing first.static StringFALSEstatic StringREBALANCE_SHARDED_DATAIfTRUE, sharded data will be rebalanced approximately equally across the cluster.static StringREBALANCE_UNSHARDED_DATAIfTRUE, unsharded data (a.k.a.static StringREPAIR_INCORRECTLY_SHARDED_DATAScans for any data sharded incorrectly and re-routes the data to the correct location.static StringTABLE_EXCLUDESComma-separated list of unsharded table names to not rebalance.static StringTABLE_INCLUDESComma-separated list of unsharded table names to rebalance.static StringTRUE
-
-
-
Field Detail
-
REBALANCE_SHARDED_DATA
public static final String REBALANCE_SHARDED_DATA
IfTRUE, 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 isTRUE.- See Also:
- Constant Field Values
-
TRUE
public static final String TRUE
- See Also:
- Constant Field Values
-
FALSE
public static final String FALSE
- See Also:
- Constant Field Values
-
REBALANCE_UNSHARDED_DATA
public static final String REBALANCE_UNSHARDED_DATA
IfTRUE, 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 isTRUE.- See Also:
- Constant Field Values
-
TABLE_INCLUDES
public static final String TABLE_INCLUDES
Comma-separated list of unsharded table names to rebalance. Not applicable to sharded tables because they are always rebalanced. Cannot be used simultaneously withTABLE_EXCLUDES. This parameter is ignored ifREBALANCE_UNSHARDED_DATAisFALSE.- See Also:
- Constant Field Values
-
TABLE_EXCLUDES
public static final String TABLE_EXCLUDES
Comma-separated list of unsharded table names to not rebalance. Not applicable to sharded tables because they are always rebalanced. Cannot be used simultaneously withTABLE_INCLUDES. This parameter is ignored ifREBALANCE_UNSHARDED_DATAisFALSE.- See Also:
- Constant Field Values
-
AGGRESSIVENESS
public static final String AGGRESSIVENESS
Influences how much data is moved at a time during rebalance. A higherAGGRESSIVENESSwill complete the rebalance faster. A lowerAGGRESSIVENESSwill 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'.- See Also:
- Constant Field Values
-
COMPACT_AFTER_REBALANCE
public static final String COMPACT_AFTER_REBALANCE
Perform compaction of deleted records once the rebalance completes to reclaim memory and disk space. Default isTRUE, unlessREPAIR_INCORRECTLY_SHARDED_DATAis set toTRUE. Supported values: The default value isTRUE.- See Also:
- Constant Field Values
-
COMPACT_ONLY
public static final String COMPACT_ONLY
If set toTRUE, ignore rebalance options and attempt to perform compaction of deleted records to reclaim memory and disk space without rebalancing first. Supported values: The default value isFALSE.- See Also:
- Constant Field Values
-
REPAIR_INCORRECTLY_SHARDED_DATA
public static final String REPAIR_INCORRECTLY_SHARDED_DATA
Scans for any data sharded incorrectly and re-routes the data to the correct location. Only necessary ifGPUdb.adminVerifyDbreports an error in sharding alignment. 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. If this option is set toTRUE, the time necessary to rebalance and the memory used by the rebalance may increase. Supported values: The default value isFALSE.- See Also:
- Constant Field Values
-
-