fix(cloud-functions): set memory swap to 256m

This commit is contained in:
Torsten Dittmann
2021-01-27 13:28:42 +01:00
parent 3bec43c7fd
commit 91e2cae2bc
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ _APP_FUNCTIONS_TIMEOUT=900
_APP_FUNCTIONS_CONTAINERS=10
_APP_FUNCTIONS_CPUS=1
_APP_FUNCTIONS_MEMORY=128
_APP_FUNCTIONS_MEMORY_SWAP=128
_APP_FUNCTIONS_MEMORY_SWAP=256
_APP_MAINTENANCE_INTERVAL=86400
_APP_MAINTENANCE_RETENTION_EXECUTION=1209600
_APP_MAINTENANCE_RETENTION_ABUSE=86400
+1 -1
View File
@@ -349,7 +349,7 @@ return [
'name' => '_APP_FUNCTIONS_MEMORY_SWAP',
'description' => 'The maximum amount of swap memory a single cloud function is allowed to use in megabytes. The default value is 128.',
'introduction' => '0.7.0',
'default' => '128',
'default' => '256',
'required' => false,
'question' => '',
],
+1 -1
View File
@@ -363,7 +363,7 @@ class FunctionsV1
" --entrypoint=\"\"".
" --cpus=".App::getEnv('_APP_FUNCTIONS_CPUS', '1').
" --memory=".App::getEnv('_APP_FUNCTIONS_MEMORY', '128')."m".
" --memory-swap=".App::getEnv('_APP_FUNCTIONS_MEMORY_SWAP', '128')."m".
" --memory-swap=".App::getEnv('_APP_FUNCTIONS_MEMORY_SWAP', '256')."m".
" --name={$container}".
" --label appwrite-type=function".
" --label appwrite-created={$executionTime}".
@@ -535,14 +535,14 @@ class FunctionsCustomServerTest extends Scope
'command' => 'deno run --allow-env index.ts',
'timeout' => 15,
],
/*[
[
'language' => 'Dart',
'version' => '2.10',
'name' => 'dart-2.10',
'code' => $functions.'/dart.tar.gz',
'command' => 'dart run main.dart',
'command' => 'dart main.dart',
'timeout' => 15,
],*/
],
[
'language' => '.NET',
'version' => '3.1',