Module riak_core_coverage_plan

A module to calculate a plan to cover a minimal set of VNodes.

Description

A module to calculate a plan to cover a minimal set of VNodes. There is also an option to specify a number of primary VNodes from each preference list to use in the plan.

Data Types

coverage_plan()

coverage_plan() = {coverage_vnodes(), vnode_filters()}

coverage_vnodes()

coverage_vnodes() = [{index(), node()}]

index()

index() = chash:index_as_int()

req_id()

req_id() = non_neg_integer()

vnode_filters()

vnode_filters() = [{node(), [{index(), [index()]}]}]

Function Index

create_plan/5Create a coverage plan to distribute work to a set covering VNodes around the ring.

Function Details

create_plan/5

create_plan(VNodeSelector::all | allup, NVal::pos_integer(), PVC::pos_integer(), ReqId::req_id(), Service::atom()) -> {error, term()} | coverage_plan()

Create a coverage plan to distribute work to a set covering VNodes around the ring.


Generated by EDoc