CmdID

CmdID / aws / aws dax

aws dax decrease-replication-factor

Removes one or more nodes from a DAX cluster. AWS CLI reference

1 example 4 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To remove one or more nodes from the cluster

The following decrease-replication-factor example decreases the number of nodes in the specified DAX cluster to one.

aws dax decrease-replication-factor --cluster-name daxcluster --new-replication-factor 1Identify
--cluster-nameThe name of the DAX cluster from which you want to remove nodes.
--new-replication-factorThe new number of nodes for the DAX cluster.
Its output, shortened
{
    "Cluster": {
        "ClusterName": "daxcluster",
        "ClusterArn": "arn:aws:dax:us-west-2:123456789012:cache/daxcluster",
        "TotalNodes": 3,
        "ActiveNodes": 3,
        "NodeType": "dax.r4.large",
        "Status": "modifying",
        "ClusterDiscoveryEndpoint": {
            "Address": "daxcluster.ey3o9d.clustercfg.dax.usw2.cache.amazonaws.com",
            "Port": 8111
        },
        "Nodes": [
            {
                "NodeId": "daxcluster-a",
                "Endpoint": {
                    "Address": "daxcluster-a.ey3o9d.0001.dax.usw2.cache.amazonaws.com",
                    "Port": 8111
                },
                "NodeCreateTime": 1576625059.509,
                "AvailabilityZone": "us-west-2c",
                "NodeStatus": "available",
                "ParameterGroupStatus": "in-sync"
            },
            {
                "NodeId": "daxcluster-b",
                "Endpoint": {
                    "Address": "daxcluster-b.ey3o9d.0001.dax.usw2.cache.amazonaws.com",
                    "Port": 8111
                },
… 36 more lines

For more information, see Managing DAX Clusters in the Amazon DynamoDB Developer Guide.

Options

4 in the AWS CLI reference
--availability-zonesThe Availability Zone(s) from which to remove nodes.
--cluster-nameThe name of the DAX cluster from which you want to remove nodes.
--new-replication-factorThe new number of nodes for the DAX cluster.
--node-ids-to-removeThe unique identifiers of the nodes to be removed from the cluster.