diff --git a/.env b/.env index b889ebb513..e3a991945d 100644 --- a/.env +++ b/.env @@ -66,8 +66,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=1024 +_APP_FUNCTIONS_CPUS=8 +_APP_FUNCTIONS_MEMORY=16384 _APP_FUNCTIONS_INACTIVE_THRESHOLD=600 _APP_FUNCTIONS_MAINTENANCE_INTERVAL=600 _APP_FUNCTIONS_RUNTIMES_NETWORK=runtimes diff --git a/src/Appwrite/Utopia/Response/Model/Specs.php b/src/Appwrite/Utopia/Response/Model/Specs.php index 73f889287f..20cb02eec1 100644 --- a/src/Appwrite/Utopia/Response/Model/Specs.php +++ b/src/Appwrite/Utopia/Response/Model/Specs.php @@ -11,14 +11,14 @@ class Specs extends Model { $this ->addRule('cpus', [ - 'type' => self::TYPE_STRING, + 'type' => self::TYPE_INTEGER, 'description' => 'Amount of CPU cores available.', 'default' => '', 'example' => [1, 2, 4, 8], 'array' => true, ]) ->addRule('memory', [ - 'type' => self::TYPE_STRING, + 'type' => self::TYPE_INTEGER, 'description' => 'Amount of memory available in MB.', 'default' => '', 'example' => [512, 1024, 2048, 4096, 8192, 16384],