forked from 3wordchant/capsul-flask
Adjust capacity warning to 20GB
This commit is contained in:
parent
a09c82ecfc
commit
040c36bbaf
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user