forked from Deuxfleurs/garage
Mendes
7f3249a237
It takes as paramters the replication factor and the zone redundancy, computes the largest partition size reachable with these constraints, and among the possible assignation with this partition size, it computes the one that moves the least number of partitions compared to the previous assignation. This computation uses graph algorithms defined in graph_algo.rs
19 lines
300 B
Rust
19 lines
300 B
Rust
//! Crate containing rpc related functions and types used in Garage
|
|
|
|
#[macro_use]
|
|
extern crate tracing;
|
|
|
|
mod consul;
|
|
#[cfg(feature = "kubernetes-discovery")]
|
|
mod kubernetes;
|
|
|
|
pub mod layout;
|
|
pub mod graph_algo;
|
|
pub mod ring;
|
|
pub mod system;
|
|
|
|
|
|
mod metrics;
|
|
pub mod rpc_helper;
|
|
|
|
pub use rpc_helper::*;
|