diff --git a/.github/actions/deploy/deploy.mjs b/.github/actions/deploy/deploy.mjs index 43d0855df8..64baadd937 100644 --- a/.github/actions/deploy/deploy.mjs +++ b/.github/actions/deploy/deploy.mjs @@ -68,8 +68,8 @@ const createHelmCommand = ({ isDryRun }) => { ] : []; const webReplicaCount = isProduction ? 3 : isBeta ? 2 : 2; - const graphqlReplicaCount = isProduction ? 10 : isBeta ? 10 : 2; - const syncReplicaCount = isProduction ? 10 : isBeta ? 10 : 2; + const graphqlReplicaCount = isProduction ? 10 : isBeta ? 5 : 2; + const syncReplicaCount = isProduction ? 10 : isBeta ? 5 : 2; const namespace = isProduction ? 'production' : isBeta ? 'beta' : 'dev'; // eslint-disable-next-line @typescript-eslint/no-non-null-assertion const host = DEPLOY_HOST || CANARY_DEPLOY_HOST; diff --git a/.github/helm/affine/charts/graphql/templates/deployment.yaml b/.github/helm/affine/charts/graphql/templates/deployment.yaml index d1c7f27c69..593824db68 100644 --- a/.github/helm/affine/charts/graphql/templates/deployment.yaml +++ b/.github/helm/affine/charts/graphql/templates/deployment.yaml @@ -35,6 +35,8 @@ spec: key: key - name: NODE_ENV value: "{{ .Values.env }}" + - name: NODE_OPTIONS + value: "--max-old-space-size=4096" - name: NO_COLOR value: "1" - name: SERVER_FLAVOR diff --git a/.github/helm/affine/charts/graphql/values.yaml b/.github/helm/affine/charts/graphql/values.yaml index f0a8ab4948..2353c3939b 100644 --- a/.github/helm/affine/charts/graphql/values.yaml +++ b/.github/helm/affine/charts/graphql/values.yaml @@ -72,11 +72,8 @@ podSecurityContext: fsGroup: 2000 resources: - limits: - cpu: '4' - memory: 8Gi requests: - cpu: '2' + cpu: '4' memory: 4Gi probe: