Skip to content

/AWS1/CL_ECA=>MODIFYREPLGROUPSHARDCONF()

About ModifyReplicationGroupShardConfiguration

Modifies a replication group's shards (node groups) by allowing you to add shards, remove shards, or rebalance the keyspaces among existing shards.

Method Signature

IMPORTING

Required arguments:

IV_REPLICATIONGROUPID TYPE /AWS1/ECASTRING /AWS1/ECASTRING

The name of the Redis (cluster mode enabled) cluster (replication group) on which the shards are to be configured.

IV_NODEGROUPCOUNT TYPE /AWS1/ECAINTEGER /AWS1/ECAINTEGER

The number of node groups (shards) that results from the modification of the shard configuration.

IV_APPLYIMMEDIATELY TYPE /AWS1/ECABOOLEAN /AWS1/ECABOOLEAN

Indicates that the shard reconfiguration process begins immediately. At present, the only permitted value for this parameter is true.

Value: true

Optional arguments:

IT_RESHARDINGCONFIGURATION TYPE /AWS1/CL_ECARESHARDINGCONF=>TT_RESHARDINGCONFIGURATIONLIST TT_RESHARDINGCONFIGURATIONLIST

Specifies the preferred availability zones for each node group in the cluster. If the value of NodeGroupCount is 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 NodeGroupCount is greater than the current number of node groups (shards).

IT_NODEGROUPSTOREMOVE TYPE /AWS1/CL_ECANODEGRPSTOREMLST_W=>TT_NODEGROUPSTOREMOVELIST TT_NODEGROUPSTOREMOVELIST

If the value of NodeGroupCount is less than the current number of node groups (shards), then either NodeGroupsToRemove or NodeGroupsToRetain is required. NodeGroupsToRemove is a list of NodeGroupIds to remove from the cluster.

ElastiCache for Redis will attempt to remove all node groups listed by NodeGroupsToRemove from the cluster.

IT_NODEGROUPSTORETAIN TYPE /AWS1/CL_ECANODEGRSTORTNLIST_W=>TT_NODEGROUPSTORETAINLIST TT_NODEGROUPSTORETAINLIST

If the value of NodeGroupCount is less than the current number of node groups (shards), then either NodeGroupsToRemove or NodeGroupsToRetain is required. NodeGroupsToRetain is a list of NodeGroupIds to retain in the cluster.

ElastiCache for Redis will attempt to remove all node groups except those listed by NodeGroupsToRetain from the cluster.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_ECAMODREPLGRSHARDCO01 /AWS1/CL_ECAMODREPLGRSHARDCO01