12708: TODO notes about memory use and class combinations.
authorTom Clegg <tclegg@veritasgenetics.com>
Thu, 26 Apr 2018 17:10:04 +0000 (13:10 -0400)
committerTom Clegg <tclegg@veritasgenetics.com>
Thu, 26 Apr 2018 17:10:04 +0000 (13:10 -0400)
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tclegg@veritasgenetics.com>

services/keep-balance/block_state.go

index 6fd50f477989acc94485205336a30977c96b56ca..22e89c019ab9fa5a5fb833bf84bbc63df7a4e93b 100644 (file)
@@ -25,6 +25,14 @@ type Replica struct {
 type BlockState struct {
        Replicas []Replica
        Desired  map[string]int
+       // TODO: Support combinations of classes ("private + durable")
+       // by replacing the map[string]int with a map[*[]string]int
+       // here, where the map keys come from a pool of semantically
+       // distinct class combinations.
+       //
+       // TODO: Use a pool of semantically distinct Desired maps to
+       // conserve memory (typically there are far more BlockState
+       // objects in memory than distinct Desired profiles).
 }
 
 var defaultClasses = []string{"default"}