<p>We have a go lang service which will go to redis, to fetch data for each request and we want to read data from redis slave node as well. We went through the documentation of redis and go-redis library and found that, in order to read data from redis slave we should fire readonly command from redis side. We are using ClusterOptions on go-redis library to setup a readonly connection to redis.</p>
<pre><code>redis.NewClusterClient(&amp;redis.ClusterOptions{
    Addrs:    []string{redisAddress},
    Password: &quot;&quot;,
    ReadOnly: true,
})
</code></pre>
<p>After doing all this we are able to see (Using monitoring) that read requests are handled by master nodes only. I hope this is not expected and I am missing something or doing it wrong. Any pointers will be appreciated to solve this problem.</p>
<p>Some more context:
redisAddress in above code is single kubernetes cluster IP. Redis is deployed using kubernetes operator with 3 masters and 1 replica for each master.</p>

Abhishek Outlook Gautam
<p>I`ve done it setting the option RouteRandomly: true</p>
