diff --git a/charts/hedera-mirror/templates/stackgres/stackgres-cluster.yaml b/charts/hedera-mirror/templates/stackgres/stackgres-cluster.yaml index c4ba7499ab4..a65021ccf75 100644 --- a/charts/hedera-mirror/templates/stackgres/stackgres-cluster.yaml +++ b/charts/hedera-mirror/templates/stackgres/stackgres-cluster.yaml @@ -20,8 +20,9 @@ spec: persistentVolume: {{ .Values.stackgres.coordinator.persistentVolume | toYaml | nindent 8 }} resources: disableResourcesRequestsSplitFromTotal: {{ .Values.stackgres.dedicatedResourcesRequests }} - {{- if eq ((.Values.stackgres.coordinator.persistentVolume).storageClass) "zfs" }} scheduling: + priorityClassName: {{ .Values.stackgres.priorityClassName }} + {{- if eq ((.Values.stackgres.coordinator.persistentVolume).storageClass) "zfs" }} nodeSelector: citus-role: coordinator csi-type: zfs @@ -30,7 +31,7 @@ spec: operator: Equal value: "true" effect: NoSchedule - {{- end }} + {{- end }} sgInstanceProfile: {{ include "hedera-mirror.stackgres" . }}-coordinator database: {{ .Values.db.name }} nonProductionOptions: @@ -59,8 +60,9 @@ spec: persistentVolume: {{ .Values.stackgres.worker.persistentVolume | toYaml | nindent 8 }} resources: disableResourcesRequestsSplitFromTotal: {{ .Values.stackgres.dedicatedResourcesRequests }} - {{- if eq ((.Values.stackgres.worker.persistentVolume).storageClass) "zfs" }} scheduling: + priorityClassName: {{ .Values.stackgres.priorityClassName }} + {{- if eq ((.Values.stackgres.worker.persistentVolume).storageClass) "zfs" }} nodeSelector: citus-role: worker csi-type: zfs @@ -69,7 +71,7 @@ spec: operator: Equal value: "true" effect: NoSchedule - {{- end }} + {{- end }} sgInstanceProfile: {{ include "hedera-mirror.stackgres" . }}-worker type: citus {{- end -}} diff --git a/charts/hedera-mirror/values-prod.yaml b/charts/hedera-mirror/values-prod.yaml index edf0408b34c..a026ce99f90 100644 --- a/charts/hedera-mirror/values-prod.yaml +++ b/charts/hedera-mirror/values-prod.yaml @@ -158,12 +158,13 @@ stackgres: persistentVolume: size: 256Gi storageClass: zfs + priorityClassName: critical worker: instances: 3 replicasPerInstance: 1 resources: cpu: 9500m - memory: 34Gi + memory: 40Gi requests: containers: cluster-controller: diff --git a/charts/hedera-mirror/values.yaml b/charts/hedera-mirror/values.yaml index a2609f08ef7..fde2ba85301 100644 --- a/charts/hedera-mirror/values.yaml +++ b/charts/hedera-mirror/values.yaml @@ -290,10 +290,10 @@ stackgres: max_wal_size: "24GB" password_encryption: "scram-sha-256" random_page_cost: "1.1" - shared_buffers: "9GB" + shared_buffers: "7GB" wal_init_zero: "off" # Not needed with ZFS wal_recycle: "off" # Not needed with ZFS - work_mem: "16MB" + work_mem: "12MB" enableMetricsExporter: false enablePostgresUtil: true instances: 1 @@ -328,6 +328,7 @@ stackgres: nameOverride: citus podAntiAffinity: true postgresVersion: "16.2" + priorityClassName: "" worker: config: autovacuum_max_workers: "2" @@ -344,7 +345,7 @@ stackgres: shared_buffers: "12GB" wal_init_zero: "off" # Not needed with ZFS wal_recycle: "off" # Not needed with ZFS - work_mem: "16MB" + work_mem: "12MB" enableMetricsExporter: false enablePostgresUtil: true instances: 1