From 253a4cedf5740b153a4daab13f93f1ff67753fa4 Mon Sep 17 00:00:00 2001 From: fryorcraken Date: Mon, 30 Dec 2024 09:27:29 +1100 Subject: [PATCH] Increase margin On my personal setup, the volume can take up to 2 GB and logs 1.5GB --- set_storage_retention.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/set_storage_retention.sh b/set_storage_retention.sh index 1b81f2e..24fee94 100755 --- a/set_storage_retention.sh +++ b/set_storage_retention.sh @@ -74,7 +74,7 @@ fi AVAIL_SPACE_MB=$(df -m . | tail -1 | awk '{ print $4 }' | sed 's/^\([0-9]\+\)M$/\1/') # Select a store size with the following constraints: -# - Margin: 1GB - 1GB will be left over for the system and logs +# - Margin: 5GB - 3GB will be left over for logs and docker volumes # - Min: 1GB - The minimum allocated space will be 1GB (old default) # - Max: 30GB - The maximum allocated space will be 30GB select_store_size $AVAIL_SPACE_MB $PGSQL_SIZE_MB 1024 1024 $(( 30 * 1024 ))