Skip to content

Commit e50817a

Browse files
committed
adjust cnpg config to add additional options and suggested postgres config
1 parent a7863d5 commit e50817a

3 files changed

Lines changed: 32 additions & 2 deletions

File tree

charts/abstract-node/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v2
22
name: abstract-node
33
description: External node for syncing and serving blockchain data for Abstract
4-
version: 0.1.22
4+
version: 0.1.23
55
type: application
66
icon: https://abstract-assets.abs.xyz/icons/light.png
77
keywords:

charts/abstract-node/templates/cluster.yaml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,25 @@ metadata:
66
labels:
77
{{- include "common.labels.standard" . | nindent 4 }}
88
spec:
9-
{{- with .Values.affinity }}
9+
{{- with .Values.cnpg.postgresql }}
10+
postgresql:
11+
{{ toYaml . | nindent 8 | trim }}
12+
{{- end }}
13+
{{- with .Values.cnpg.affinity }}
1014
affinity:
1115
{{ toYaml . | nindent 8 | trim }}
16+
{{- end }}
17+
{{- with .Values.cnpg.backup }}
18+
backup:
19+
{{ toYaml . | nindent 8 | trim }}
20+
{{- end }}
21+
{{- with .Values.cnpg.bootstrap }}
22+
bootstrap:
23+
{{ toYaml . | nindent 8 | trim }}
24+
{{- end }}
25+
{{- with .Values.cnpg.externalClusters }}
26+
externalClusters:
27+
{{ toYaml . | nindent 8 | trim }}
1228
{{- end }}
1329
instances: {{ .Values.cnpg.instances }}
1430
storage:

charts/abstract-node/values.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,3 +328,17 @@ cnpg:
328328
storageClass: ""
329329
storageSize: 250Gi
330330
enablePodMonitor: true
331+
backup: {}
332+
bootstrap: {}
333+
externalClusters: {}
334+
postgresql:
335+
parameters:
336+
shared_buffers: 2GB
337+
min_wal_size: 4GB
338+
max_wal_size: 16GB
339+
max_connections: "200"
340+
maintenance_work_mem: 1GB
341+
checkpoint_completion_target: "0.9"
342+
random_page_cost: "1.1"
343+
effective_io_concurrency: "200"
344+
max_worker_processes: "16"

0 commit comments

Comments
 (0)