mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-11 20:08:37 +00:00
refactor(server): reduce server resource requests (#10568)
close CLOUD-149
This commit is contained in:
2
.github/helm/affine/charts/doc/values.yaml
vendored
2
.github/helm/affine/charts/doc/values.yaml
vendored
@@ -26,7 +26,7 @@ podSecurityContext:
|
|||||||
|
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: '2'
|
cpu: '1'
|
||||||
memory: 4Gi
|
memory: 4Gi
|
||||||
|
|
||||||
probe:
|
probe:
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ spec:
|
|||||||
- name: NODE_ENV
|
- name: NODE_ENV
|
||||||
value: "{{ .Values.env }}"
|
value: "{{ .Values.env }}"
|
||||||
- name: NODE_OPTIONS
|
- name: NODE_OPTIONS
|
||||||
value: "--max-old-space-size=4096"
|
value: "--max-old-space-size=2048"
|
||||||
- name: NO_COLOR
|
- name: NO_COLOR
|
||||||
value: "1"
|
value: "1"
|
||||||
- name: DEPLOYMENT_TYPE
|
- name: DEPLOYMENT_TYPE
|
||||||
|
|||||||
@@ -71,8 +71,8 @@ podSecurityContext:
|
|||||||
|
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: '4'
|
cpu: '2'
|
||||||
memory: 4Gi
|
memory: 2Gi
|
||||||
|
|
||||||
probe:
|
probe:
|
||||||
initialDelaySeconds: 20
|
initialDelaySeconds: 20
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ spec:
|
|||||||
- name: NODE_ENV
|
- name: NODE_ENV
|
||||||
value: "{{ .Values.env }}"
|
value: "{{ .Values.env }}"
|
||||||
- name: NODE_OPTIONS
|
- name: NODE_OPTIONS
|
||||||
value: "--max-old-space-size=4096"
|
value: "--max-old-space-size=2048"
|
||||||
- name: NO_COLOR
|
- name: NO_COLOR
|
||||||
value: "1"
|
value: "1"
|
||||||
- name: DEPLOYMENT_TYPE
|
- name: DEPLOYMENT_TYPE
|
||||||
|
|||||||
@@ -27,8 +27,8 @@ podSecurityContext:
|
|||||||
|
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: '4'
|
cpu: '1'
|
||||||
memory: 4Gi
|
memory: 2Gi
|
||||||
|
|
||||||
probe:
|
probe:
|
||||||
initialDelaySeconds: 20
|
initialDelaySeconds: 20
|
||||||
|
|||||||
6
.github/helm/affine/charts/sync/values.yaml
vendored
6
.github/helm/affine/charts/sync/values.yaml
vendored
@@ -24,11 +24,11 @@ podSecurityContext:
|
|||||||
|
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: '4'
|
|
||||||
memory: 8Gi
|
|
||||||
requests:
|
|
||||||
cpu: '2'
|
cpu: '2'
|
||||||
memory: 4Gi
|
memory: 4Gi
|
||||||
|
requests:
|
||||||
|
cpu: '1'
|
||||||
|
memory: 2Gi
|
||||||
|
|
||||||
probe:
|
probe:
|
||||||
initialDelaySeconds: 20
|
initialDelaySeconds: 20
|
||||||
|
|||||||
Reference in New Issue
Block a user