risingwave_common::vnode_mapping

Module vnode_placement

source

Functionsยง

  • Calculate a new vnode mapping, keeping locality and balance on a best effort basis. The strategy is similar to rebalance_actor_vnode used in meta node, but is modified to consider max_parallelism too.