Default limit for function conatiner is 1 cpu

This commit is contained in:
Eldad Fux
2020-12-06 23:15:01 +02:00
parent 2ab7e520b9
commit 4bff1dd5b6
3 changed files with 1 additions and 4 deletions
-1
View File
@@ -641,7 +641,6 @@ App::post('/v1/functions/:functionId/executions')
throw new Exception('Failed saving execution to DB', 500);
}
// Issue a TLS certificate when domain is verified
Resque::enqueue('v1-functions', 'FunctionsV1', [
'projectId' => $project->getId(),
'functionId' => $function->getId(),
+1 -3
View File
@@ -378,7 +378,7 @@ class FunctionsV1
$exitCode = Console::execute("docker run \
-d \
--entrypoint=\"\" \
--cpus=4 \
--cpus=1 \
--memory=128m \
--memory-swap=128m \
--rm \
@@ -408,8 +408,6 @@ class FunctionsV1
],
];
var_dump($list);
Console::info("Function created in " . ($executionEnd - $executionStart) . " seconds with exit code {$exitCode}");
}
else {
Binary file not shown.