From 26825d5182703c1ad2fa5486df18cf5fc8d9ea8b Mon Sep 17 00:00:00 2001 From: Julien Nahum Date: Sun, 11 Feb 2024 12:20:38 +0100 Subject: [PATCH] Increase lambda memory in production --- vapor.yml | 78 ++++++++++++++++++++++++++++--------------------------- 1 file changed, 40 insertions(+), 38 deletions(-) diff --git a/vapor.yml b/vapor.yml index 6a2a204..ced4f2e 100644 --- a/vapor.yml +++ b/vapor.yml @@ -1,42 +1,44 @@ id: 34225 name: OpnForm ignore: - - storage/clockwork - - storage/logs - - client + - storage/clockwork + - storage/logs + - client environments: - api-production: - warm: 5 - memory: 1024 - cli-memory: 512 - cli-timeout: 900 - runtime: 'php-8.2:al2-arm' - storage: opnforms-prod - database: OpnForm - domain: api.opnform.com - build: - - 'COMPOSER_MIRROR_PATH_REPOS=1 composer install --no-dev' - - 'php artisan event:cache' - - 'php artisan disposable:update' - deploy: - - 'php artisan migrate --force' - firewall: - rate-limit: 1000 - timeout: 60 - api-staging: - memory: 1024 - cli-memory: 512 - cli-timeout: 900 - runtime: 'php-8.2:al2-arm' - storage: opnforms-staging - database: OpnForm - domain: api.stg.opnform.com - build: - - 'COMPOSER_MIRROR_PATH_REPOS=1 composer install --no-dev' - - 'php artisan event:cache' - - 'php artisan disposable:update' - deploy: - - 'php artisan migrate --force' - firewall: - rate-limit: 1000 - timeout: 60 + api-production: + warm: 5 + memory: 2048 + cli-memory: 2048 + cli-timeout: 900 + queue-memory: 2048 + queue-timeout: 900 + runtime: 'php-8.2:al2-arm' + storage: opnforms-prod + database: OpnForm + domain: api.opnform.com + build: + - 'COMPOSER_MIRROR_PATH_REPOS=1 composer install --no-dev' + - 'php artisan event:cache' + - 'php artisan disposable:update' + deploy: + - 'php artisan migrate --force' + firewall: + rate-limit: 1000 + timeout: 60 + api-staging: + memory: 1024 + cli-memory: 512 + cli-timeout: 900 + runtime: 'php-8.2:al2-arm' + storage: opnforms-staging + database: OpnForm + domain: api.stg.opnform.com + build: + - 'COMPOSER_MIRROR_PATH_REPOS=1 composer install --no-dev' + - 'php artisan event:cache' + - 'php artisan disposable:update' + deploy: + - 'php artisan migrate --force' + firewall: + rate-limit: 1000 + timeout: 60