I'm testing out ElastiCache backed by Redis with the following specs:
- Using Redis 2.8, with Multi-AZ
- Single replication group
- 1 master node in us-east-1b, 1 slave node in us-east-1c, 1 slave node in us-east-1d
- The part of the application writing is directly using the endpoint for the master node (primary-node.use1.cache.amazonaws.com)
- The part of the application doing only reads is pointing to a custom endpoint (readonly.redis.mydomain.com) configured in HAProxy, which then points to the two other read slave end points. (readslave1.use1.cache.amazonaws.com and readslave2.use1.cache.amazonaws.com)
Now lets say the primary node (master) fails in us-east-1b.
From what I understand, if the master instance fails, I won't have to change the url for the end point for writing to Redis (primary-node.use1.cache.amazonaws.com), although from there, I still have the following questions:
- Do I have to change the endpoint names for the read only slaves?
- How long until the missing slave is added into the pool?
If there's anything else I'm missing, I'd appreciate the advice/information.
Thanks!