cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Cassandra Wiki] Update of "VirtualNodes/Balance" by EricEvans
Date Wed, 25 Jul 2012 20:56:52 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Cassandra Wiki" for change notification.

The "VirtualNodes/Balance" page has been changed by EricEvans:
http://wiki.apache.org/cassandra/VirtualNodes/Balance?action=diff&rev1=3&rev2=4

Comment:
proposed tool interfaces

  
  === User Interface ===
  
+ The `balance` sub-command "balances" the node it is ran against, by default a targeted ownership
of `1/n`.  The sub-command takes an optional offset in the range<<FootNote(Does this
range make sense?)>> of `+100` to `-100`, which results in a targeted ownership of `(1/n)*(offset/100)`.
+ 
+ ''Note: ranges copied from/to other nodes must be selected in such a way as to respect their
offsets.''
+ 
  {{{
- $ nodetool balance
+ $ nodetool balance [+/-offset]
  }}}
+ 
+ The ``shuffle` sub-command randomly exchanges contiguous ranges on the node it ran against,
with other nodes in the cluster.
  
  {{{
  $ nodetool shuffle
  }}}
  
+ The `trim` sub-command assigns an offset in the range<<FootNote(Does this range make
sense?)>> of `+100` to `-100`, and copies randomly selected ranges onto, or off of,
the node it is ran against to achieve the requested ownership (`(1/n)*(offset/100)`).
+ 
  {{{
- $ nodetool trim
+ $ nodetool trim <+/- offset>
  }}}
  

Mime
View raw message