allow 1.2 times RAM

This is basically to allow 2 phabricators and another small app with
no warning on a 4gb droplet :-)
This commit is contained in:
girish@cloudron.io
2016-02-25 18:19:59 -08:00
parent 1fdfd3681c
commit 10967ff8ce
3 changed files with 7 additions and 6 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ fi
# all sizes are in mb
readonly physical_memory=$(free -m | awk '/Mem:/ { print $2 }')
readonly swap_size="${physical_memory}"
readonly swap_size="${physical_memory}" # if you change this, fix enoughResourcesAvailable() in client.js
readonly app_count=$((${physical_memory} / 200)) # estimated app count
readonly disk_size_gb=$(fdisk -l ${disk_device} | grep "Disk ${disk_device}" | awk '{ print $3 }')
readonly disk_size=$((disk_size_gb * 1024))