CmdID

CmdID / aws / aws memorydb

aws memorydb failover-shard

Used to failover a shard. AWS CLI reference

1 example 2 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 fail over a shard

The following failover-shard example fails over a shard.

aws memorydb failover-shard --cluster-name my-cluster --shard-name 0001Identify
--cluster-nameThe cluster being failed over.
--shard-nameThe name of the shard.
Its output
{
    "Cluster": {
        "Name": "my-cluster",
        "Status": "available",
        "NumberOfShards": 2,
        "ClusterEndpoint": {
            "Address": "clustercfg.my-cluster.xxxxxx.memorydb.us-west-2.amazonaws.com",
            "Port": 6379
        },
        "NodeType": "db.r6g.large",
        "EngineVersion": "6.2",
        "EnginePatchVersion": "6.2.6",
        "ParameterGroupName": "default.memorydb-redis6",
        "ParameterGroupStatus": "in-sync",
        "SecurityGroups": [
            {
                "SecurityGroupId": "sg-0a143xxxx45c9fae",
                "Status": "active"
            }
        ],
        "SubnetGroupName": "my-sg",
        "TLSEnabled": true,
        "ARN": "arn:aws:memorydb:us-west-2:491658xxxxxx:cluster/my-cluster",
        "SnapshotRetentionLimit": 0,
        "MaintenanceWindow": "wed:03:00-wed:04:00",
        "SnapshotWindow": "04:30-05:30",
        "AutoMinorVersionUpgrade": true
    }
}

For more information, see Minimizing downtime with MultiAZ in the MemoryDB User Guide.

Options

2 in the AWS CLI reference
--cluster-nameThe cluster being failed over.
--shard-nameThe name of the shard.