Adjust capacity warning to 20GB

This commit is contained in:
j3s 2021-03-08 19:24:47 -06:00
parent a09c82ecfc
commit 040c36bbaf

View File

@ -11,8 +11,8 @@ if echo "$RAM_BYTES_TO_ALLOCATE" | grep -vqE "^[0-9]+$"; then
exit 1
fi
# I picked 10GB arbitrarily
if [ "$RAM_BYTES_REMAINDER" -le $((10 * 1024 * 1024 * 1024)) ]; then
# 20GB
if [ "$RAM_BYTES_REMAINDER" -le $((20 * 1024 * 1024 * 1024)) ]; then
echo "VM is requesting more RAM than $(hostname -f) has available."
echo "Bytes requested: $RAM_BYTES_TO_ALLOCATE"
echo "Bytes available: $RAM_BYTES_AVAILABLE"