From b498ee271de87188c5ac6854641f019d4c689db7 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Wed, 16 Nov 2022 15:51:13 +0100 Subject: [PATCH] Don't divide layout capacity by 100 See discussion in https://git.deuxfleurs.fr/Deuxfleurs/garage/issues/414. Apparently the capacity is only relative to that of other instances in the layout, it has no absolute value of its own. We can say it corresponds to GB for ease-of-use, but garage doesn't see it that way. --- entrypoint/src/cmd/entrypoint/garage_util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint/src/cmd/entrypoint/garage_util.go b/entrypoint/src/cmd/entrypoint/garage_util.go index b860b69..ff81edb 100644 --- a/entrypoint/src/cmd/entrypoint/garage_util.go +++ b/entrypoint/src/cmd/entrypoint/garage_util.go @@ -271,7 +271,7 @@ func garageApplyLayout( } clusterLayout[id] = peerLayout{ - Capacity: alloc.Capacity / 100, + Capacity: alloc.Capacity, Zone: zone, Tags: []string{}, }