Feature #17350
Updated by Nico César almost 4 years ago
Once #17349 is done, railsapi will have "replicas_desired" d"replicas_desired" with some of the values that accept several storage classes. As example some are listed in the column "Collection effective value" from the valid entries. h2. Volumes scenario h3. Scenario 1 <pre> --- Clusters: test1: Collections: DefaultReplication: 1 Volumes: test1-nyw5e-000000000000000: AccessViaHosts: 'http://keep0:25107': {} test1-nyw5e-111111111111111: AccessViaHosts: 'http://keep1:25108': {} </pre> h3. Scenario 2 <pre> --- Clusters: test1: Collections: DefaultReplication: 1 Volumes: test1-nyw5e-000000000000000: AccessViaHosts: 'http://keep0:25107': {} test1-nyw5e-111111111111111: AccessViaHosts: 'http://keep1:25108': {} StorageClasses: archival: true </pre> |_. Collection Effective Value |_. Volumes scenario | Expected result after keep-balance run | | {"default": 1} | 1 | keep0 has 1 copy| | {"default": 1, "archival": 1} | 1 | impossible, there is no archival class? | | {"default": 0, "archival": 2} | 1 | impossible, there is no archival class? | | {"default": 1} | 2 | keep0 has 1 copy| | {"default": 1, "archival": 1} | 2 | keep0 has 1 copy and keep1 has 1 copy | | {"default": 0, "archival": 2} | 2 | impossible, there is no 2 archival class keepstores |