Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

refactor(server): reduce server resource requests (#10568)

fengmk20e26498e6a28
diff --git a/.github/helm/affine/charts/doc/values.yaml b/.github/helm/affine/charts/doc/values.yaml
index 71d960043d..78b3d1a0e8 100644
--- a/.github/helm/affine/charts/doc/values.yaml
+++ b/.github/helm/affine/charts/doc/values.yaml
@@ -26,7 +26,7 @@ podSecurityContext:
resources:
requests:
- cpu: '2'
+ cpu: '1'
memory: 4Gi
probe:
diff --git a/.github/helm/affine/charts/graphql/templates/deployment.yaml b/.github/helm/affine/charts/graphql/templates/deployment.yaml
index a6cba6eb4f..a2f5b004c3 100644
--- a/.github/helm/affine/charts/graphql/templates/deployment.yaml
+++ b/.github/helm/affine/charts/graphql/templates/deployment.yaml
@@ -36,7 +36,7 @@ spec:
- name: NODE_ENV
value: "{{ .Values.env }}"
- name: NODE_OPTIONS
- value: "--max-old-space-size=4096"
+ value: "--max-old-space-size=2048"
- name: NO_COLOR
value: "1"
- name: DEPLOYMENT_TYPE
diff --git a/.github/helm/affine/charts/graphql/values.yaml b/.github/helm/affine/charts/graphql/values.yaml
index 86915f4d8e..fcaeb60690 100644
--- a/.github/helm/affine/charts/graphql/values.yaml
+++ b/.github/helm/affine/charts/graphql/values.yaml
@@ -71,8 +71,8 @@ podSecurityContext:
resources:
requests:
- cpu: '4'
- memory: 4Gi
+ cpu: '2'
+ memory: 2Gi
probe:
initialDelaySeconds: 20
diff --git a/.github/helm/affine/charts/renderer/templates/deployment.yaml b/.github/helm/affine/charts/renderer/templates/deployment.yaml
index eaf855682c..912c24f5f8 100644
--- a/.github/helm/affine/charts/renderer/templates/deployment.yaml
+++ b/.github/helm/affine/charts/renderer/templates/deployment.yaml
@@ -36,7 +36,7 @@ spec:
- name: NODE_ENV
value: "{{ .Values.env }}"
- name: NODE_OPTIONS
- value: "--max-old-space-size=4096"
+ value: "--max-old-space-size=2048"
- name: NO_COLOR
value: "1"
- name: DEPLOYMENT_TYPE
diff --git a/.github/helm/affine/charts/renderer/values.yaml b/.github/helm/affine/charts/renderer/values.yaml
index 50482f5759..090b9a375b 100644
--- a/.github/helm/affine/charts/renderer/values.yaml
+++ b/.github/helm/affine/charts/renderer/values.yaml
@@ -27,8 +27,8 @@ podSecurityContext:
resources:
requests:
- cpu: '4'
- memory: 4Gi
+ cpu: '1'
+ memory: 2Gi
probe:
initialDelaySeconds: 20
diff --git a/.github/helm/affine/charts/sync/values.yaml b/.github/helm/affine/charts/sync/values.yaml
index 67c29939b6..5c958f97fd 100644
--- a/.github/helm/affine/charts/sync/values.yaml
+++ b/.github/helm/affine/charts/sync/values.yaml
@@ -24,11 +24,11 @@ podSecurityContext:
resources:
limits:
- cpu: '4'
- memory: 8Gi
- requests:
cpu: '2'
memory: 4Gi
+ requests:
+ cpu: '1'
+ memory: 2Gi
probe:
initialDelaySeconds: 20