aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/ring.rs
Commit message (Collapse)AuthorAgeFilesLines
* New version of the algorithm that calculate the layout.Mendes2022-09-211-0/+1
| | | | | | | | 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
* Improve how node roles are assigned in Garagev0.5-beta1Alex Auvolat2021-11-161-168/+29
| | | | | | | | | | | | | | | | | - change the terminology: the network configuration becomes the role table, the configuration of a nodes becomes a node's role - the modification of the role table takes place in two steps: first, changes are staged in a CRDT data structure. Then, once the user is happy with the changes, they can commit them all at once (or revert them). - update documentation - fix tests - implement smarter partition assignation algorithm This patch breaks the format of the network configuration: when migrating, the cluster will be in a state where no roles are assigned. All roles must be re-assigned and commited at once. This migration should not pose an issue.
* Improvements to CLI and various fixes for netapp versionAlex Auvolat2021-10-221-34/+2
| | | | Discovery via consul, persist peer list to file
* First port of Garage to NetappAlex Auvolat2021-10-221-2/+9
|
* Prepare for v0.3.0 and add migration path from v0.2.1.xv0.3.0Alex Auvolat2021-05-281-2/+26
|
* Rename datacenters into zones (doc not yet updated)Alex Auvolat2021-05-281-9/+9
|
* Many improvements on ring/replication and its configuration:Alex Auvolat2021-05-281-44/+109
| | | | | | | | | | | | | | | | | | | | - Explicit "replication_mode" configuration parameters that takes either "none", "2" or "3" as values, instead of letting user configure replication factor themselves. These are presets whose corresponding replication/quorum values can be found in replication/mode.rs - Explicit support for single-node and two-node deployments (number of nodes must be at least "replication_mode", with "none" we can have only one node) - Ring is now stored much more compactly with 256*8 + n*32 bytes, instead of 256*32 bytes - Support for gateway-only nodes that do not store data (these nodes still need a metadata_directory to store the list of bucket and keys since those are stored on all nodes; it also technically needs a data_directory to start but it will stay empty unless we have bugs)
* rename types to CamelCaseTrinity Pointard2021-05-031-5/+5
|
* fix clippy warnings on util and rpcTrinity Pointard2021-05-031-4/+3
|
* change some more comments and revert changes on TableSchemaTrinity Pointard2021-04-271-1/+1
|
* make most requested changesTrinity Pointard2021-04-271-1/+3
|
* document rpc crateTrinity Pointard2021-04-271-6/+28
|
* Update dependenciesAlex Auvolat2021-03-161-1/+0
|
* Simpler Merkle & syncAlex Auvolat2021-03-161-1/+20
|
* Simplify replication logicAlex Auvolat2021-03-161-1/+7
|
* Some improvements in background worker but we terminate lateAlex Auvolat2021-03-151-5/+5
|
* (not well tested) use merkle tree for syncAlex Auvolat2021-03-111-1/+1
|
* Very minor changesAlex Auvolat2021-03-101-1/+1
|
* Rename n_tokens into capacityAlex Auvolat2021-03-101-5/+5
|
* update conditionAlex Auvolat2021-03-051-3/+2
|
* Not fully tested: new multi-dc MagLevAlex Auvolat2021-03-051-70/+137
|
* Cargo fmtAlex Auvolat2021-02-231-4/+7
|
* rename hash() to sha256sum(), we might want to change it at some placesAlex Auvolat2021-02-211-1/+1
|
* Some refactoringAlex Auvolat2021-02-211-0/+122