mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-23 16:32:04 +03:00
chore: adjust the request memory size and replica count (#5046)
This commit is contained in:
parent
317ca7f4e7
commit
42f4045ad6
4
.github/actions/deploy/deploy.mjs
vendored
4
.github/actions/deploy/deploy.mjs
vendored
@ -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;
|
||||||
|
@ -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
|
||||||
|
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user