increase_replica_count
¶
increase_replica_count(
*,
config_overrides: Optional[ElastiCacheClientConfig] = 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/elasti_cache.py
4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 | |