Module garage_rpc::ring[][src]

Expand description

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

Structs

NetworkConfig

The user-defined configuration of the cluster’s nodes

NetworkConfigEntry

The overall configuration of one (possibly remote) node

Ring

A ring distributing fairly objects to nodes

Constants

PARTITION_BITS

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

Partition

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)