Update defaults, Switch to integer

This commit is contained in:
Bradley Schofield
2024-07-04 12:38:36 +09:00
parent 2dffddf161
commit 06c8efa34a
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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
+2 -2
View File
@@ -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],