pub struct AdminRebalanceRequestOptions
pub rebalance_sharded_data: String,
pub rebalance_unsharded_data: String,
pub table_includes: String,
pub table_excludes: String,
pub aggressiveness: String,
pub compact_after_rebalance: String,
pub compact_only: String,
pub repair_incorrectly_sharded_data: String,
Optional parameters for the /admin/rebalance endpoint.
Default::default() is the empty set: only options set explicitly are sent, and anything left empty falls back to the server’s own default.
Fields
rebalance_sharded_data: StringIf 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. Server default: true.
rebalance_unsharded_data: StringIf 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. Server default: true.
table_includes: StringComma-separated list of unsharded table names to rebalance. Not applicable to sharded tables because they are always rebalanced. Cannot be used simultaneously with table_excludes. This parameter is ignored if rebalance_unsharded_data is false.
table_excludes: StringComma-separated list of unsharded table names to not rebalance. Not applicable to sharded tables because they are always rebalanced. Cannot be used simultaneously with table_includes. This parameter is ignored if rebalance_unsharded_data is false.
aggressiveness: StringInfluences 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). Server default: 10.
compact_after_rebalance: StringPerform 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. Server default: true.
compact_only: StringIf set to true, ignore rebalance options and attempt to perform compaction of deleted records to reclaim memory and disk space without rebalancing first. Server default: false.
repair_incorrectly_sharded_data: StringScans for any data sharded incorrectly and re-routes the data to the correct location. Only necessary if /admin/verifydb reports 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 to true, the time necessary to rebalance and the memory used by the rebalance may increase. Server default: false.
Implementations
Trait Implementations
impl Clone for AdminRebalanceRequestOptions
fn clone(&self) -> AdminRebalanceRequestOptions
fn clone_from(&mut self, source: &Self)
source. Read more