Modifies a replication group's shards (node groups) by allowing you to add shards, remove shards, or rebalance the keyspaces among existing shards
Source:R/elasticache_operations.R
elasticache_modify_replication_group_shard_configuration.RdModifies a replication group's shards (node groups) by allowing you to add shards, remove shards, or rebalance the keyspaces among existing shards.
See https://www.paws-r-sdk.com/docs/elasticache_modify_replication_group_shard_configuration/ for full documentation.
Usage
elasticache_modify_replication_group_shard_configuration(
ReplicationGroupId,
NodeGroupCount,
ApplyImmediately,
ReshardingConfiguration = NULL,
NodeGroupsToRemove = NULL,
NodeGroupsToRetain = NULL
)Arguments
- ReplicationGroupId
[required] The name of the Valkey or Redis OSS (cluster mode enabled) cluster (replication group) on which the shards are to be configured.
- NodeGroupCount
[required] The number of node groups (shards) that results from the modification of the shard configuration.
- ApplyImmediately
[required] Indicates that the shard reconfiguration process begins immediately. At present, the only permitted value for this parameter is
true.Value: true
- ReshardingConfiguration
Specifies the preferred availability zones for each node group in the cluster. If the value of
NodeGroupCountis greater than the current number of node groups (shards), you can use this parameter to specify the preferred availability zones of the cluster's shards. If you omit this parameter ElastiCache selects availability zones for you.You can specify this parameter only if the value of
NodeGroupCountis greater than the current number of node groups (shards).- NodeGroupsToRemove
If the value of
NodeGroupCountis less than the current number of node groups (shards), then eitherNodeGroupsToRemoveorNodeGroupsToRetainis required.NodeGroupsToRemoveis a list ofNodeGroupIds to remove from the cluster.ElastiCache will attempt to remove all node groups listed by
NodeGroupsToRemovefrom the cluster.- NodeGroupsToRetain
If the value of
NodeGroupCountis less than the current number of node groups (shards), then eitherNodeGroupsToRemoveorNodeGroupsToRetainis required.NodeGroupsToRetainis a list ofNodeGroupIds to retain in the cluster.ElastiCache will attempt to remove all node groups except those listed by
NodeGroupsToRetainfrom the cluster.