I setup redis in GKE using the helm chart.
It created 3 services redis-master, redis-slave, and redis-headless. When i connect to it over the "redis-headless" i get a error (about 66% of the time):
READONLY You can't write against a read only replica.
I assume this is because it is routing to two of the slave instances. If I use the master then it seems to work.
I assume that i should only use the redis-master to connect? Will it ever use the slave? Will it update if the master goes down? Should I ever route to slave (for read queries)?
I want to feel better on my understanding on how it is working (assuming it is).
Thank you