JedisCluster and Read Replicas

904 views
Skip to first unread message

Al Roche

unread,
Jun 11, 2020, 9:40:59 AM6/11/20
to Jedis
Hi,

I am having a problem with JedisCluster connecting to an Elasticache Cluster Mode redis cluster with 2 shards, - each shard has a Primary node and a Read-only Replica. 

However, I can only see requests (hits or misses) going to the primary in each cluster. I expected to see reads (and hence hits and misses in the graphs) going to the read-only replicas.
I created a JedisCluster instance passing in only the configuration endpoint of the cluster. I expected it to discover primary and also the Read Replica nodes in the cluster.
What am I missing here?
Do I need to do something extra to somehow send reads to the read replicas in each shard?
I am somewhat stumped on this, and there doesn't seem to be much documentation on the subject so any help appreciate.
Thanks,
Al

Al Roche

unread,
Jun 11, 2020, 9:40:59 AM6/11/20
to Jedis
Hi,
I am connecting to an Elasticache Redis Cluster using JedisCluster via the Redis Cluster Configuration endpoint.
The cluster has 2 shards, each with a Primary/Write node and a read replica.

When I send requests the to cluster it does work, but I do not see any hits on the read replicas, only on the primary in each of the 2 shards. What am i doing wrong here?
Any help sincerely appreciated as i am stumped on this. I expected to see reads hitting the replicas.

Thanks,
Al.
 

Sazzadul Hoque

unread,
Jun 11, 2020, 10:05:51 AM6/11/20
to jedis...@googlegroups.com
So far, JedisCluster only supports reading from master.

PS: It hasn't been very long since Redis started supporting read from cluster replicas.

--
You received this message because you are subscribed to the Google Groups "Jedis" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jedis_redis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jedis_redis/e20b14a2-9a45-47c8-9429-0e1bfa7c5cddo%40googlegroups.com.

Alan Roche

unread,
Jun 11, 2020, 10:09:11 AM6/11/20
to jedis...@googlegroups.com
Thanks for the clarification here. So presumably in this context the replicas are basically warm standbys for HA.


Reply all
Reply to author
Forward
0 new messages