Astro
2018-10-26 12:23:53 UTC
I am using redis-py-cluster(latest version) with redis cluster version
4.0.11.
Using this redis-py-cluster doc
<https://redis-py-cluster.readthedocs.io/en/master/readonly-mode.html>.
Sample redis.conf
slave-read-only yes
slave-serve-stale-data yes
Below is the python code that connects to the cluster:
startup_nodes= [a list of cluster nodes goes here inclusing all masters and
slaves]
rc = StrictRedisCluster(startup_nodes=startup_nodes, readonly_mode=True)
rc = rc.pipeline()
---
some redis GET call code here
---
rc.execute()
However, all get calls are still being executed on masters only when
checked using MONITOR.
Please suggest.
Thanks!
4.0.11.
Using this redis-py-cluster doc
<https://redis-py-cluster.readthedocs.io/en/master/readonly-mode.html>.
Sample redis.conf
slave-read-only yes
slave-serve-stale-data yes
Below is the python code that connects to the cluster:
startup_nodes= [a list of cluster nodes goes here inclusing all masters and
slaves]
rc = StrictRedisCluster(startup_nodes=startup_nodes, readonly_mode=True)
rc = rc.pipeline()
---
some redis GET call code here
---
rc.execute()
However, all get calls are still being executed on masters only when
checked using MONITOR.
Please suggest.
Thanks!
--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+***@googlegroups.com.
To post to this group, send email to redis-***@googlegroups.com.
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+***@googlegroups.com.
To post to this group, send email to redis-***@googlegroups.com.
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.