diff --git a/.env b/.env index 8c8f1673a..581af6d97 100644 --- a/.env +++ b/.env @@ -32,7 +32,7 @@ _APP_STORAGE_LIMIT=10000000 _APP_FUNCTIONS_TIMEOUT=900 _APP_FUNCTIONS_CONTAINERS=10 _APP_FUNCTIONS_CPUS=1 -_APP_FUNCTIONS_MEMORY=128 +_APP_FUNCTIONS_MEMORY=256 _APP_FUNCTIONS_MEMORY_SWAP=256 _APP_MAINTENANCE_INTERVAL=86400 _APP_MAINTENANCE_RETENTION_EXECUTION=1209600 diff --git a/app/workers/functions.php b/app/workers/functions.php index 5e6e55347..368d40b07 100644 --- a/app/workers/functions.php +++ b/app/workers/functions.php @@ -391,7 +391,7 @@ class FunctionsV1 " -d". " --entrypoint=\"\"". " --cpus=".App::getEnv('_APP_FUNCTIONS_CPUS', '1'). - " --memory=".App::getEnv('_APP_FUNCTIONS_MEMORY', '128')."m". + " --memory=".App::getEnv('_APP_FUNCTIONS_MEMORY', '256')."m". " --memory-swap=".App::getEnv('_APP_FUNCTIONS_MEMORY_SWAP', '256')."m". " --name={$container}". " --label appwrite-type=function". diff --git a/tests/e2e/Services/Functions/FunctionsCustomServerTest.php b/tests/e2e/Services/Functions/FunctionsCustomServerTest.php index 8379a2f6b..f3711c185 100644 --- a/tests/e2e/Services/Functions/FunctionsCustomServerTest.php +++ b/tests/e2e/Services/Functions/FunctionsCustomServerTest.php @@ -643,10 +643,6 @@ class FunctionsCustomServerTest extends Scope $executionId = $execution['body']['$id'] ?? ''; $this->assertEquals(201, $execution['headers']['status-code']); - sleep(30); - fwrite(STDERR, "."); - sleep(30); - $executions = $this->client->call(Client::METHOD_GET, '/functions/'.$functionId.'/executions', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'],