From fc5d6d0cdf237dcca949412c902327f73c7dd737 Mon Sep 17 00:00:00 2001 From: thenav56 Date: Fri, 22 Jul 2022 09:09:54 +0545 Subject: [PATCH] Upgrade staging to prod for performance test. --- copilot/export-worker/manifest.yml | 6 ++++-- copilot/web/addons/aurora-postgresql.yml | 3 ++- copilot/web/manifest.yml | 15 ++++++++++++--- copilot/worker/manifest.yml | 5 +++-- 4 files changed, 21 insertions(+), 8 deletions(-) diff --git a/copilot/export-worker/manifest.yml b/copilot/export-worker/manifest.yml index 55df92ef..8333cac4 100644 --- a/copilot/export-worker/manifest.yml +++ b/copilot/export-worker/manifest.yml @@ -63,8 +63,10 @@ secrets: environments: staging: - count: - spot: 1 + # count: + # spot: 1 + cpu: 2048 + memory: 16384 prod: cpu: 2048 diff --git a/copilot/web/addons/aurora-postgresql.yml b/copilot/web/addons/aurora-postgresql.yml index ef24b753..858e433d 100644 --- a/copilot/web/addons/aurora-postgresql.yml +++ b/copilot/web/addons/aurora-postgresql.yml @@ -26,7 +26,8 @@ Mappings: Port: 5432 staging: DBFamily: 'aurora-postgresql13' - DBInstanceClass: db.t4g.medium + # DBInstanceClass: db.t4g.medium + DBInstanceClass: db.r6g.large Engine: aurora-postgresql EngineVersion: '13.4' BackupRetentionPeriod: 7 diff --git a/copilot/web/manifest.yml b/copilot/web/manifest.yml index b08dde1e..fc6c4f9e 100644 --- a/copilot/web/manifest.yml +++ b/copilot/web/manifest.yml @@ -61,16 +61,25 @@ environments: staging: http: alias: staging-api.thedeep.io - count: - spot: 1 - prod: + # count: + # spot: 1 + cpu: 2048 memory: 4096 + count: + range: 2-4 + requests: 1000 + spot_from: 2 + + prod: http: alias: prod-api.thedeep.io + cpu: 2048 + memory: 4096 + count: range: 2-4 requests: 1000 diff --git a/copilot/worker/manifest.yml b/copilot/worker/manifest.yml index 1fd21e24..0b2d8bd1 100644 --- a/copilot/worker/manifest.yml +++ b/copilot/worker/manifest.yml @@ -63,8 +63,9 @@ secrets: environments: staging: - count: - spot: 1 + # count: + # spot: 1 + count: 2 prod: count: 2