You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a 3 node pseudo-distributed cluster on a single node using yb-ctl. We create the three nodes in three AZs (although this may or may not be relevant to reproducing this issue).
Given that this is a 3-node, RF=3 cluster, all nodes should contain all the tablets. When running he read test with just one of the nodes in the --nodes list, one would expect all the reads to get served from the local node (because the gflag redis_allow_reads_from_followers is set to TRUE).
Run the sample app in read mode, and just hit one of the nodes:
When we look at this yb-master UI view (http://127.0.0.1:7000/tablet-servers) which lists the IOPS per tablet server, while the load is running we see that the reads are going to nodes in other AZs as well, and not getting handled at the 127.0.0.3 which has all the tablets (either in leader or follower role).
The text was updated successfully, but these errors were encountered:
…llow_reads_from_followers is set
Summary:
This fixes a bug in RedisServiceImpl::Impl::SetUpYBClient where uuid and placement info wasn't being set.
Test Plan: New tests to verify that read operations are sent to the local tserver (when that tserver has all the tablets), and a new test to verify that read operations are sent to a node in the same zone (when all the tablets are owned by the tservers in the zone)
Reviewers: kannan, mihnea, robert, pritam.damania
Reviewed By: pritam.damania
Subscribers: ybase
Differential Revision: https://phabricator.dev.yugabyte.com/D4926
Rough steps to repro.
Run the sample app in read mode, and just hit one of the nodes:
When we look at this yb-master UI view (http://127.0.0.1:7000/tablet-servers) which lists the IOPS per tablet server, while the load is running we see that the reads are going to nodes in other AZs as well, and not getting handled at the 127.0.0.3 which has all the tablets (either in leader or follower role).
The text was updated successfully, but these errors were encountered: