diff --git a/.env b/.env index 6fb438ee63..d034359eba 100644 --- a/.env +++ b/.env @@ -67,8 +67,8 @@ _APP_STORAGE_PREVIEW_LIMIT=20000000 _APP_FUNCTIONS_SIZE_LIMIT=30000000 _APP_FUNCTIONS_TIMEOUT=900 _APP_FUNCTIONS_BUILD_TIMEOUT=900 -_APP_FUNCTIONS_CPUS=1 -_APP_FUNCTIONS_MEMORY=512 +_APP_FUNCTIONS_CPUS=2 +_APP_FUNCTIONS_MEMORY=1024 _APP_FUNCTIONS_INACTIVE_THRESHOLD=600 _APP_FUNCTIONS_MAINTENANCE_INTERVAL=600 _APP_FUNCTIONS_RUNTIMES_NETWORK=runtimes diff --git a/tests/e2e/Services/Functions/FunctionsCustomServerTest.php b/tests/e2e/Services/Functions/FunctionsCustomServerTest.php index cba7ec53cb..357cbcfd4a 100644 --- a/tests/e2e/Services/Functions/FunctionsCustomServerTest.php +++ b/tests/e2e/Services/Functions/FunctionsCustomServerTest.php @@ -404,8 +404,8 @@ class FunctionsCustomServerTest extends Scope 'timeout' => 15, 'runtime' => 'php-8.0', 'entrypoint' => 'index.php', - 'memory' => 4096, - 'cpus' => 4 + 'memory' => 1024, + 'cpus' => 2 ]); $this->assertEquals(200, $response1['headers']['status-code']); @@ -421,8 +421,8 @@ class FunctionsCustomServerTest extends Scope ], $response1['body']['events']); $this->assertEquals('0 0 1 1 *', $response1['body']['schedule']); $this->assertEquals(15, $response1['body']['timeout']); - $this->assertEquals(4096, $response1['body']['memory']); - $this->assertEquals(4, $response1['body']['cpus']); + $this->assertEquals(1024, $response1['body']['memory']); + $this->assertEquals(2, $response1['body']['cpus']); /** * Test for FAILURE