Balancing read-only scripts between replicas in non-cluster mode #4088
Replies: 1 comment 1 reply
-
A brief look at the code shows that There is no out-of-the-box solution for the Master-Replica setup similar to This sounds like a possible improvement in Jedis. Some sort of utility that is capable of reading the Master-Replica topology from seed nodes and providing API for triggering command toward master/replica nodes. |
Beta Was this translation helpful? Give feedback.
-
Hi All!
I have a Redis [7.1.0] cache setup in non-cluster mode with 1 primary and 4 replica nodes. I was wondering is there any good way to execute read-only script on replicas, because currently every script execution targets the primary node and would be great to be able to execute those scripts on replicas.
I've seen the ClusterCommandExecutor supports this and also I use it in my cluster setup. Is there any workaround to achieve the same in non-cluster mode?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions