Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

chore: decrease the instances count on gcp (#5658)

LongYinan8b92cc0cae64
diff --git a/.github/actions/deploy/deploy.mjs b/.github/actions/deploy/deploy.mjs
index ea8ab78e13..8c860d2a8f 100644
--- a/.github/actions/deploy/deploy.mjs
+++ b/.github/actions/deploy/deploy.mjs
@@ -65,8 +65,16 @@ const createHelmCommand = ({ isDryRun }) => {
]
: [];
const webReplicaCount = isProduction ? 3 : isBeta ? 2 : 2;
- const graphqlReplicaCount = isProduction ? 10 : isBeta ? 5 : 2;
- const syncReplicaCount = isProduction ? 10 : isBeta ? 5 : 2;
+ const graphqlReplicaCount = isProduction
+ ? Number(process.env.PRODUCTION_GRAPHQL_REPLICA) || 3
+ : isBeta
+ ? Number(process.env.isBeta_GRAPHQL_REPLICA) || 2
+ : 2;
+ const syncReplicaCount = isProduction
+ ? Number(process.env.PRODUCTION_SYNC_REPLICA) || 3
+ : isBeta
+ ? Number(process.env.BETA_SYNC_REPLICA) || 2
+ : 2;
const namespace = isProduction
? 'production'
: isBeta