Project

General

Profile

Feature #17350

Updated by Nico César almost 4 years ago

Once #17349 is done, railsapi will have d"replicas_desired" desired_replication with some of the values calues in the "Collection effective value" from the valid entries. entries 

 h2. Volumes scenario 

 h3. Scenario 1 
 <pre> 
 --- 
 Clusters: 
   test1: 
     Collections: 
       DefaultReplication: 1 
     Volumes: 
       test1-nyw5e-000000000000000: 
         AccessViaHosts: 
           'http://keep0:25107': {} 
         Driver: Directory 
         DriverParameters: 
           Root: /var/lib/arvados/keep0 
       test1-nyw5e-111111111111111: 
         AccessViaHosts: 
           'http://keep1:25108': {} 
         Driver: Directory 
         DriverParameters: 
           Root: /var/lib/arvados/keep1 
         ReadOnly: true 
 </pre> 

 h3. Scenario 2 
 <pre> 
 --- 
 Clusters: 
   test1: 
     Collections: 
       DefaultReplication: 1 
     Volumes: 
       test1-nyw5e-000000000000000: 
         AccessViaHosts: 
           'http://keep0:25107': {} 
         Driver: Directory 
         DriverParameters: 
           Root: /var/lib/arvados/keep0 
       test1-nyw5e-111111111111111: 
         AccessViaHosts: 
           'http://keep1:25108': {} 
         Driver: Directory 
         DriverParameters: 
           Root: /var/lib/arvados/keep1 
         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} | 1 | keep0 has 1 copy| 
 | {"default": 1, "archival": 1} | 1 | keep0 has 1 copy and keep1 has 1 copy | 
 | {"default": 0, "archival": 2} | 1 | impossible, there is no 2 archival class keepstores    |

Back