chore: adjust the request memory size and replica count (#5046)

This commit is contained in:
LongYinan 2023-11-24 06:19:38 +00:00
parent 317ca7f4e7
commit 42f4045ad6
No known key found for this signature in database
GPG Key ID: 30B1140CE1C07C99
3 changed files with 5 additions and 6 deletions

View File

@ -68,8 +68,8 @@ const createHelmCommand = ({ isDryRun }) => {
] ]
: []; : [];
const webReplicaCount = isProduction ? 3 : isBeta ? 2 : 2; const webReplicaCount = isProduction ? 3 : isBeta ? 2 : 2;
const graphqlReplicaCount = isProduction ? 10 : isBeta ? 10 : 2; const graphqlReplicaCount = isProduction ? 10 : isBeta ? 5 : 2;
const syncReplicaCount = isProduction ? 10 : isBeta ? 10 : 2; const syncReplicaCount = isProduction ? 10 : isBeta ? 5 : 2;
const namespace = isProduction ? 'production' : isBeta ? 'beta' : 'dev'; const namespace = isProduction ? 'production' : isBeta ? 'beta' : 'dev';
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
const host = DEPLOY_HOST || CANARY_DEPLOY_HOST; const host = DEPLOY_HOST || CANARY_DEPLOY_HOST;

View File

@ -35,6 +35,8 @@ spec:
key: key key: key
- name: NODE_ENV - name: NODE_ENV
value: "{{ .Values.env }}" value: "{{ .Values.env }}"
- name: NODE_OPTIONS
value: "--max-old-space-size=4096"
- name: NO_COLOR - name: NO_COLOR
value: "1" value: "1"
- name: SERVER_FLAVOR - name: SERVER_FLAVOR

View File

@ -72,11 +72,8 @@ podSecurityContext:
fsGroup: 2000 fsGroup: 2000
resources: resources:
limits:
cpu: '4'
memory: 8Gi
requests: requests:
cpu: '2' cpu: '4'
memory: 4Gi memory: 4Gi
probe: probe: