aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/graph_algo.rs
Commit message (Collapse)AuthorAgeFilesLines
* cargo fmtMendes2022-10-101-377/+377
|
* Tests written in layout.rsMendes2022-10-101-14/+0
| | | | | added staged_parameters to ClusterLayout removed the serde(default) -> will need a migration function
* corrected warnings of cargo clippyMendes2022-10-061-13/+13
|
* Correction of a few bugs in the tests, modification of ClusterLayout::checkMendes2022-09-221-23/+18
|
* New version of the algorithm that calculate the layout.Mendes2022-09-211-0/+440
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