Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upbackport-2.1: workload/roachtest: Fix load-based rebalancing test flakes by splitting kv keyspace evenly #30332
Conversation
a-robinson
added some commits
Sep 15, 2018
a-robinson
requested a review
from
nvanbenschoten
Sep 17, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
a-robinson
merged commit fd52067
into
cockroachdb:release-2.1
Sep 18, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
a-robinson commentedSep 17, 2018
Backport 3/3 commits from #30255.
/cc @cockroachdb/release
workload/kv: Add option to split key space evenly
The default splitting behavior randomly chooses split points, which can
lead to ranges that encompass drastically different amounts of the key
space (e.g. I saw a 9x size difference in the run I examined that
motivated this). Having drastically different range sizes is a pain for
any tests that expect roughly even qps across the ranges.
If you'd prefer I can just write this into the rebalancing roachtest,
but it seemed like something that may be useful more broadly as well.
roachtest: Split kv ranges evenly in load-based rebalancing tests
Fixes #29969. The rebalance-replicas-by-load roachtest sometimes failed
to properly rebalance one range leaseholder for the kv table to each
node because the ranges could receive drastically different qps (where
two smaller ranges don't even come close to the qps of one larger one).
Also, while I'm here, improve the output of the test a bit and send SQL load to all of the nodes, not just the first three.