mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-24 22:09:08 +08:00
chore(server): down scale service (#13367)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Reduced the number of deployment replicas for web, graphql, sync, renderer, and doc components across all build types (stable, beta, canary). <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -29,25 +29,25 @@ const isInternal = buildType === 'internal';
|
|||||||
|
|
||||||
const replicaConfig = {
|
const replicaConfig = {
|
||||||
stable: {
|
stable: {
|
||||||
web: 3,
|
web: 2,
|
||||||
graphql: Number(process.env.PRODUCTION_GRAPHQL_REPLICA) || 3,
|
graphql: Number(process.env.PRODUCTION_GRAPHQL_REPLICA) || 2,
|
||||||
sync: Number(process.env.PRODUCTION_SYNC_REPLICA) || 3,
|
sync: Number(process.env.PRODUCTION_SYNC_REPLICA) || 2,
|
||||||
renderer: Number(process.env.PRODUCTION_RENDERER_REPLICA) || 3,
|
renderer: Number(process.env.PRODUCTION_RENDERER_REPLICA) || 2,
|
||||||
doc: Number(process.env.PRODUCTION_DOC_REPLICA) || 3,
|
doc: Number(process.env.PRODUCTION_DOC_REPLICA) || 2,
|
||||||
},
|
},
|
||||||
beta: {
|
beta: {
|
||||||
web: 2,
|
web: 1,
|
||||||
graphql: Number(process.env.BETA_GRAPHQL_REPLICA) || 2,
|
graphql: Number(process.env.BETA_GRAPHQL_REPLICA) || 1,
|
||||||
sync: Number(process.env.BETA_SYNC_REPLICA) || 2,
|
sync: Number(process.env.BETA_SYNC_REPLICA) || 1,
|
||||||
renderer: Number(process.env.BETA_RENDERER_REPLICA) || 2,
|
renderer: Number(process.env.BETA_RENDERER_REPLICA) || 1,
|
||||||
doc: Number(process.env.BETA_DOC_REPLICA) || 2,
|
doc: Number(process.env.BETA_DOC_REPLICA) || 1,
|
||||||
},
|
},
|
||||||
canary: {
|
canary: {
|
||||||
web: 2,
|
web: 1,
|
||||||
graphql: 2,
|
graphql: 1,
|
||||||
sync: 2,
|
sync: 1,
|
||||||
renderer: 2,
|
renderer: 1,
|
||||||
doc: 2,
|
doc: 1,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user