Module garage_rpc::ring

source ·
Expand description

Module containing types related to computing nodes which should receive a copy of data blocks and metadata

Structs

  • A ring distributing fairly objects to nodes

Constants

  • How many bits from the hash are used to make partitions. Higher numbers means more fairness in presence of numerous nodes, but exponentially bigger ring. Max 16

Type Definitions

  • A partition id, which is stored on 16 bits i.e. we have up to 216 partitions. (in practice we have exactly 2PARTITION_BITS partitions)