user2693188
user2693188

Reputation: 37

High-availability Redis?

I am currently setting up an infrastructure for an App in AWS. App is written in Django and is using Redis for some transactions. High availability is key for this application and I am having a hard time trying to get my head around how to configure Redis for High availability.

Application level changes are not an option.

Ideally I would like to have a redis setup, to which I can write and read and replicate and scale when required.

Current Setup is a Redis Fail-over scenario with HAProxy --> Redis Master --> Replica Slave.

Could someone guide me understand various options ? and how to scale redis for high availability !

Upvotes: 0

Views: 411

Answers (1)

Kunal
Kunal

Reputation: 1024

Use AWS ElastiCache Redis Cluster with Multi-AZ. They provides automatic fail-over. It provides endpoint to access master node.

If master goes down AWS route your endpoint to another node. everything happens automatically, you don't have to do anything.

Just make sure that if you are doing DNS to IP caching in your application, its set to 60 seconds or so instead of default.

http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/AutoFailover.html

Thanks, KS

Upvotes: 1

Related Questions