Browse Source

squeeze api max mem a bit more, max 200m on a 1g system

pull/44/head
Jonathan Cobb 4 years ago
parent
commit
1ce4bd590f
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      bubble-server/src/main/java/bubble/service/cloud/AnsiblePrepService.java

+ 2
- 2
bubble-server/src/main/java/bubble/service/cloud/AnsiblePrepService.java View File

@@ -161,9 +161,9 @@ public class AnsiblePrepService {
if (installType == AnsibleInstallType.sage) return (int) (((double) memoryMB) * 0.6d);
if (memoryMB >= 4096) return (int) (((double) memoryMB) * 0.6d);
if (memoryMB >= 2048) return (int) (((double) memoryMB) * 0.5d);
if (memoryMB >= 1024) return (int) (((double) memoryMB) * 0.23d);
if (memoryMB >= 1024) return (int) (((double) memoryMB) * 0.196d);
// no nodes are this small, API probably would not start, not enough memory
return (int) (((double) memoryMB) * 0.22d);
return (int) (((double) memoryMB) * 0.19d);
}

}

Loading…
Cancel
Save