New version of the algorithm that calculate the layout.

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
This commit is contained in:
Mendes
2022-09-21 14:39:59 +02:00
parent c4adbeed51
commit 7f3249a237
9 changed files with 918 additions and 690 deletions
+2
View File
@@ -8,9 +8,11 @@ mod consul;
mod kubernetes;
pub mod layout;
pub mod graph_algo;
pub mod ring;
pub mod system;
mod metrics;
pub mod rpc_helper;