Skip to content
This repository has been archived by the owner on Sep 25, 2020. It is now read-only.

[Feature] Add option to dist to see distribution of sample keys across your ring #36

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

thanodnl
Copy link
Contributor

@thanodnl thanodnl commented Oct 31, 2016

To help investigating a sevnup imbalance I created an extension to ringpop-admin dist that can be used to see actual distribution of your keyspace across your cluster.

As a convenience method there are a couple of flags you can provide to choose for which keys you want to calculate the distribution:

  1. --sevnup <vnode> This will add the stringified version of the numbers from 0 to <vnode> to the set of keys to distribute. This will simulate how sevnup distributes its vnodes across the cluster.
  2. --file <filename> This will load keys from a file. If it can parse the file as JSON it expects it to be an array of keys. If it can't parse the file as json it expects keys to be new line (\n) separated.

Both options can be used together which takes a union of the to lists.

Nils Dijk added 2 commits October 31, 2016 14:20
The percentages and colors in this test can be hard coded since the
hashrings are deterministically calculated from the membership
which is known during our tests.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant