From 6f541ecf802870070640e7f9252397c2f908cb0d Mon Sep 17 00:00:00 2001 From: liuyi Date: Wed, 16 Oct 2024 19:36:58 +0800 Subject: [PATCH] ci: increase renderer server replica count (#8469) --- .github/actions/deploy/deploy.mjs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/actions/deploy/deploy.mjs b/.github/actions/deploy/deploy.mjs index 36fe91d1dd..31b8cf2bb5 100644 --- a/.github/actions/deploy/deploy.mjs +++ b/.github/actions/deploy/deploy.mjs @@ -45,29 +45,34 @@ const replicaConfig = { web: 3, graphql: Number(process.env.PRODUCTION_GRAPHQL_REPLICA) || 3, sync: Number(process.env.PRODUCTION_SYNC_REPLICA) || 3, + renderer: Number(process.env.PRODUCTION_RENDERER_REPLICA) || 3, }, beta: { web: 2, graphql: Number(process.env.BETA_GRAPHQL_REPLICA) || 2, sync: Number(process.env.BETA_SYNC_REPLICA) || 2, + renderer: Number(process.env.BETA_RENDERER_REPLICA) || 3, }, canary: { web: 2, graphql: 2, sync: 2, + renderer: 2, }, }; const cpuConfig = { beta: { - web: '500m', + web: '300m', graphql: '1', sync: '1', + renderer: '300m', }, canary: { - web: '500m', + web: '300m', graphql: '1', sync: '1', + renderer: '300m', }, }; @@ -160,6 +165,7 @@ const createHelmCommand = ({ isDryRun }) => { `--set-string sync.image.tag="${imageTag}"`, `--set-string renderer.image.tag="${imageTag}"`, `--set renderer.app.host=${host}`, + `--set renderer.replicaCount=${replica.renderer}`, ...serviceAnnotations, ...resources, `--timeout 10m`,