Przeglądaj źródła

bump down resource max pct on small instances (#4426)

ianedwards 2 lat temu
rodzic
commit
119a134af8
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3 3
      dashboard/src/lib/porter-apps/services.ts

+ 3 - 3
dashboard/src/lib/porter-apps/services.ts

@@ -722,7 +722,7 @@ export function serializedServiceFromProto({
     .exhaustive();
 }
 
-const SMALL_INSTANCE_UPPER_BOUND = 0.75;
+const SMALL_INSTANCE_UPPER_BOUND = 0.65;
 const LARGE_INSTANCE_UPPER_BOUND = 0.9;
 const NEW_SERVICE_RESOURCE_DEFAULT_MULTIPLIER = 0.125;
 
@@ -770,8 +770,8 @@ export function getServiceResourceAllowances(
 
   const maxCpuCores =
     Math.floor(
-      maxRamApplicationInstance.instanceType.cpuCores * multiplier * 2
-    ) / 2; // round to nearest half
+      maxRamApplicationInstance.instanceType.cpuCores * multiplier * 4
+    ) / 4; // round to nearest quarter
   const maxRamMegabytes =
     Math.round(
       (maxRamApplicationInstance.instanceType.ramMegabytes * multiplier) / 100