question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Reading from Elasticache replica nodes

See original GitHub issue

Hello

I’m using Redisson ( redisson-all-3.5.5.jar )to connect to AWS Elasticache running in Cluster mode disabled. The cluster has 1 primary and 2 replica nodes. The application uses Redisson’s Spring Cache abstraction support. I have configured Redisson in Master-Slave mode providing the primary end-point as master and replica end-points as slaves. I load the application by making hundreds of simultaneous requests hitting the cache. When I view CloudWatch metrics, I notice that there are no CacheHits for the replica nodes. All the requests seem to be going only to the master/primary node. I have tried SLAVE as well as MASTER-SLAVE for read-mode attribute. I played around with the LoadBalancer class trying out RoundRobin and Random , but to no luck. The idea behind using multiple replicas was to distribute read load and not just for high-availability. It is important for us to read from slave nodes. Is there some setting that needs to be enabled to allow Redisson to read from slave nodes ?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:25 (18 by maintainers)

github_iconTop GitHub Comments

1reaction
mrnikocommented, Feb 5, 2020

Redis cluster with multiple masters.

1reaction
johnoucommented, May 10, 2018

I just wanted to comment on this issue to say it’s a feature, not a bug.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Understanding Redis replication - Amazon ElastiCache for ...
Each read replica maintains a copy of the data from the cluster's primary node. Asynchronous replication mechanisms are used to keep the read...
Read more >
Understanding Redis replication in AWS ElastiCache | Igor Fil
Let's look at how ElastiCache offers to replicate data in Redis. ElastiCache can be run in several different configurations: No Replication.
Read more >
Finding replication group endpoints - Amazon ElastiCache for ...
Reader endpoints keep up with cluster changes in real-time as replicas are added or removed. You can place your ElastiCache for Redis cluster's...
Read more >
Redis Read Replica - Jayendra's Cloud Certification Blog
ElastiCache supports initiated or forced failover where it flips the DNS record for the primary node to point at the read replica, which...
Read more >
Amazon ElastiCache Deep Dive
ElastiCache Redis : Distributed In-Memory Data Store. Client. Geospatial ... node. K eysp a c e. Connect to Primary for. Read/Writes and Replica's...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found