From 06c8efa34aadd5474b87e21bccdcba26d0135003 Mon Sep 17 00:00:00 2001 From: Bradley Schofield Date: Thu, 4 Jul 2024 12:38:36 +0900 Subject: [PATCH] Update defaults, Switch to integer --- .env | 4 ++-- src/Appwrite/Utopia/Response/Model/Specs.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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],