I have read about automatic failover feature of AWS Elasticache Redis. The document tells me that the failover process need that I have at least 1 replica node (i.e. at least 2 total nodes) so that it can use the replica node to replace the failed primary node.
But I cannot find the details about what will happen if I have only 1 node and it fails. Is it re-created automatically or it needs a manual process to drop and re-create it?
I intend to create a Redis Group (Cluster Mode Disabled) with only 1 node in my test environment using following CloudFormation template.
"ReplicationGroup": {
"Type": "AWS::ElastiCache::ReplicationGroup",
"Properties": {
"ReplicationGroupId" : "my-redis",
"ReplicationGroupDescription" : "My Redis",
"NumCacheClusters": 1,
"AutomaticFailoverEnabled": false,
"CacheNodeType": "cache.t3.medium",
"CacheParameterGroupName" : "default.redis5.0",
"Engine": "redis",
"EngineVersion" : "5.0.6",
"Port": "6379",
"AtRestEncryptionEnabled" : true,
"TransitEncryptionEnabled" : true,
"AuthToken" : {"Ref": "AuthToken"},
"CacheSubnetGroupName": {"Ref": "SubnetGroup"},
"SecurityGroupIds": [
{"Ref": "RedisSecurityGroup"}
],
"SnapshotRetentionLimit": 0,
"MultiAZEnabled" : {"Fn::If": ["ConditionMultiAZEnabled", true, false]}
}
},