increase_replica_count
async
¶
increase_replica_count(
*,
config_overrides: Optional[AsyncElastiCacheClientConfig] = None,
replication_group_id: Optional[String] = None,
new_replica_count: Optional[IntegerOptional] = None,
replica_configuration: Optional[ReplicaConfigurationList] = None,
apply_immediately: Optional[Boolean] = None,
) -> IncreaseReplicaCountResult
Dynamically increases the number of replicas in a Valkey or Redis OSS (cluster mode disabled) replication group or the number of replica nodes in one or more node groups (shards) of a Valkey or Redis OSS (cluster mode enabled) replication group. This operation is performed with no cluster down time.
Parameters:
-
replication_group_id(Optional[String], default:None) –The id of the replication group to which you want to add replica nodes.
-
new_replica_count(Optional[IntegerOptional], default:None) –The number of read replica nodes you want at the completion of this operation. For Valkey or Redis OSS (cluster mode disabled) replication groups, this is the number of replica nodes in the replication group. For Valkey or Redis OSS (cluster mode enabled) replication groups, this is the number of replica nodes in each of the replication group's node groups.
-
replica_configuration(Optional[ReplicaConfigurationList], default:None) –A list of
ConfigureShardobjects that can be used to configure each shard in a Valkey or Redis OSS (cluster mode enabled) replication group. TheConfigureShardhas three members:NewReplicaCount,NodeGroupId, andPreferredAvailabilityZones. -
apply_immediately(Optional[Boolean], default:None) –If
True, the number of replica nodes is increased immediately.ApplyImmediately=Falseis not currently supported.
Raises:
-
ClusterQuotaForCustomerExceededFault–The request cannot be processed because it would exceed the allowed number of clusters per customer.
-
InsufficientCacheClusterCapacityFault–The requested cache node type is not available in the specified Availability Zone. For more information, see InsufficientCacheClusterCapacity in the ElastiCache User Guide.
-
InvalidCacheClusterStateFault–The requested cluster is not in the
availablestate. -
InvalidKMSKeyFault–The KMS key supplied is not valid.
-
InvalidParameterCombinationException–Two or more incompatible parameters were specified.
-
InvalidParameterValueException–The value for a parameter is invalid.
-
InvalidReplicationGroupStateFault–The requested replication group is not in the
availablestate. -
InvalidVPCNetworkStateFault–The VPC network is in an invalid state.
-
NodeGroupsPerReplicationGroupQuotaExceededFault–The request cannot be processed because it would exceed the maximum allowed number of node groups (shards) in a single replication group. The default maximum is 90
-
NodeQuotaForCustomerExceededFault–The request cannot be processed because it would exceed the allowed number of cache nodes per customer.
-
NoOperationFault–The operation was not performed because no changes were required.
-
ReplicationGroupNotFoundFault–The specified replication group does not exist.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_elasticache/_services/async_elasti_cache.py
5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 | |