Balancing read-only scripts between replicas in non-cluster mode #4088
-
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. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
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.
@tamasgyenese
Yes, this looks like a viable option.