Skip to content

Commit 689c1fb

Browse files
committed
chore(postgresql-cluster): adjust params
1 parent cb8a33b commit 689c1fb

27 files changed

Lines changed: 133 additions & 139 deletions

File tree

addons/postgresql-cluster/15/chart/postgresql-cluster/templates/statefulset.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ spec:
251251
name: storage-volume
252252
annotations:
253253
{{- if .Values.persistentVolume.annotations }}
254-
{{ toYaml .Values.persistentVolume.annotations | indent 8 }}
254+
{{ toYaml .Values.persistentVolume.annotations | indent 10 }}
255255
{{- end }}
256256
labels:
257257
application: {{ template "patroni.fullname" . }}

addons/postgresql-cluster/15/chart/postgresql-cluster/values.yaml

Lines changed: 19 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
replicaCount: 3
2-
diagnosticMode:
2+
diagnosticMode:
33
enable: false
44

55
service:
6-
type: ClusterIP
6+
type: ClusterIP
77

88
image:
99
# Image was built from registry.drycc.cc/drycc-addons/patroni:3.2
1010
# https://github.com/zalando/spilo/tree/master/postgres-appliance
1111
repository: registry.drycc.cc/drycc-addons/postgresql-patroni
1212
tag: 15
1313
# IfNotPresent , Always
14-
pullPolicy: 'IfNotPresent'
14+
pullPolicy: "IfNotPresent"
1515

16-
logicalbackupImages:
16+
logicalbackupImages:
1717
repository: registry.drycc.cc/drycc-addons/postgresql-logicalbackup
1818
tag: 15
1919
# IfNotPresent , Always
20-
pullPolicy: 'IfNotPresent'
20+
pullPolicy: "IfNotPresent"
2121

2222
# Credentials used by Patroni , passwd
2323
# https://github.com/zalando/patroni/blob/master/docs/SETTINGS.rst#postgresql
@@ -188,8 +188,7 @@ logicalbackupScript: |
188188
189189
echo "Backup process completed!"
190190
191-
192-
postgresql:
191+
postgresql:
193192
config: |-
194193
log_min_duration_statement = 1000
195194
max_wal_size = 4GB
@@ -204,8 +203,7 @@ patroni:
204203
max_worker_processes: 64
205204
max_parallel_workers: 32
206205
max_connections: 2000
207-
max_slot_wal_keep_size: '2 GB'
208-
206+
max_slot_wal_keep_size: "2 GB"
209207

210208
## @param patroni.podAnnotations Additional pod annotations for Postgresql patroni pods
211209
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
@@ -251,12 +249,12 @@ patroni:
251249
## Postgresql Prometheus exporter parameters
252250
##
253251
metrics:
254-
enabled: true
252+
enabled: true
255253
image:
256254
repository: registry.drycc.cc/drycc-addons/postgres-exporter
257255
tag: "0"
258256
# IfNotPresent , Always
259-
pullPolicy: 'IfNotPresent'
257+
pullPolicy: "IfNotPresent"
260258
## @param metrics.customMetrics Define additional custom metrics
261259
## ref: https://github.com/wrouesnel/postgres_exporter#adding-new-metrics-via-a-config-file
262260
## customMetrics:
@@ -278,23 +276,23 @@ metrics:
278276
## Values: ClientIP or None
279277
## ref: https://kubernetes.io/docs/user-guide/services/
280278
##
281-
sessionAffinity: None
279+
sessionAffinity: None
282280
## @param metrics.service.annotations [object] Annotations for Prometheus to auto-discover the metrics endpoint
283281
##
284282
annotations:
285283
prometheus.io/scrape: "true"
286284
prometheus.io/port: "{{ .Values.metrics.service.ports.metrics }}"
287285

288-
customMetrics: {}
286+
customMetrics: {}
289287
containerPort: 9187
290288
containerSecurityContext:
291289
enabled: false
292290
runAsUser: 1001
293291
runAsNonRoot: true
294292
customLivenessProbe: {}
295293
customReadinessProbe:
296-
enabled: true
297-
resources:
294+
enabled: true
295+
resources:
298296
limits:
299297
cpu: 100m
300298
memory: 512Mi
@@ -303,7 +301,7 @@ metrics:
303301
cpu: 100m
304302
memory: 512Mi
305303

306-
logicalbackup:
304+
logicalbackup:
307305
enabled: false
308306
scheduleCronJob: "22 0 * * 0"
309307
minio:
@@ -368,13 +366,13 @@ persistentVolume:
368366
accessModes:
369367
- ReadWriteOnce
370368

371-
resources:
369+
resources:
372370
# If you do want to specify resources, uncomment the following
373371
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
374372
limits:
375373
cpu: 100m
376374
memory: 512Mi
377-
# hugepages-2Mi: 4Mi
375+
hugepages-2Mi: 4Mi
378376
requests:
379377
cpu: 100m
380378
memory: 512Mi
@@ -408,7 +406,6 @@ affinityTemplate: |
408406
application: {{ template "patroni.name" . }}
409407
release: {{ .Release.Name | quote }}
410408
affinity: {}
411-
412409
## Use an alternate scheduler, e.g. "stork".
413410
## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
414411
##
@@ -429,13 +426,13 @@ serviceAccount:
429426
networkPolicy:
430427
## @param networkPolicy.enabled Enable creation of NetworkPolicy resources
431428
##
432-
enabled: true
429+
enabled: true
433430
## @param networkPolicy.allowExternal The Policy model to apply.
434431
## When set to false, only pods with the correct
435432
## client label will have network access to the port Postgresql is listening
436433
## on. When true, Postgresql will accept connections from any source
437434
## (with the correct destination port).
438435
##
439436
allowCurrentNamespace: true
440-
allowNamespaces:
441-
clusterDomain: cluster.local
437+
allowNamespaces:
438+
clusterDomain: cluster.local

addons/postgresql-cluster/15/plans/standard-16c64g400/values.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ patroni:
66
max_worker_processes: 32
77
max_parallel_workers: 16
88
max_connections: 2000
9-
max_slot_wal_keep_size: '10 GB'
9+
max_slot_wal_keep_size: "10 GB"
1010

1111
postgresql:
1212
config: |-
@@ -57,12 +57,12 @@ postgresql:
5757
# Advanced features
5858
enable_partitionwise_join = on
5959
enable_partitionwise_aggregate = on
60-
jit = on
60+
jit = off
6161
max_slot_wal_keep_size = 40GB
6262
track_wal_io_timing = on
6363
maintenance_io_concurrency = 100
6464
65-
resources:
65+
resources:
6666
# If you do want to specify resources, uncomment the following
6767
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
6868
limits:
@@ -78,4 +78,4 @@ persistentVolume:
7878
size: 400Gi
7979

8080
shmVolume:
81-
sizeLimit: "32Gi"
81+
sizeLimit: "32Gi"

addons/postgresql-cluster/15/plans/standard-2c4g20/values.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ patroni:
77
max_worker_processes: 4
88
max_parallel_workers: 2
99
max_connections: 1000
10-
max_slot_wal_keep_size: '2 GB'
10+
max_slot_wal_keep_size: "2 GB"
1111

1212
postgresql:
1313
config: |-
@@ -58,11 +58,11 @@ postgresql:
5858
# Advanced features
5959
enable_partitionwise_join = on
6060
enable_partitionwise_aggregate = on
61-
jit = on
61+
jit = off
6262
track_wal_io_timing = on
6363
maintenance_io_concurrency = 100
6464
65-
resources:
65+
resources:
6666
# If you do want to specify resources, uncomment the following
6767
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
6868
limits:
@@ -78,4 +78,4 @@ persistentVolume:
7878
size: 20Gi
7979

8080
shmVolume:
81-
sizeLimit: "2Gi"
81+
sizeLimit: "2Gi"

addons/postgresql-cluster/15/plans/standard-2c8g50/values.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ patroni:
77
max_worker_processes: 4
88
max_parallel_workers: 2
99
max_connections: 2000
10-
max_slot_wal_keep_size: '5 GB'
10+
max_slot_wal_keep_size: "5 GB"
1111

1212
postgresql:
1313
config: |-
@@ -59,12 +59,12 @@ postgresql:
5959
# Advanced features
6060
enable_partitionwise_join = on
6161
enable_partitionwise_aggregate = on
62-
jit = on
62+
jit = off
6363
max_slot_wal_keep_size = 5GB
6464
track_wal_io_timing = on
6565
maintenance_io_concurrency = 100
6666
67-
resources:
67+
resources:
6868
# If you do want to specify resources, uncomment the following
6969
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
7070
limits:
@@ -80,4 +80,4 @@ persistentVolume:
8080
size: 50Gi
8181

8282
shmVolume:
83-
sizeLimit: "4Gi"
83+
sizeLimit: "4Gi"

addons/postgresql-cluster/15/plans/standard-32c128g800/values.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ patroni:
77
max_worker_processes: 64
88
max_parallel_workers: 32
99
max_connections: 2000
10-
max_slot_wal_keep_size: '100 GB'
10+
max_slot_wal_keep_size: "100 GB"
1111

1212
postgresql:
1313
config: |-
@@ -58,12 +58,12 @@ postgresql:
5858
# Advanced features
5959
enable_partitionwise_join = on
6060
enable_partitionwise_aggregate = on
61-
jit = on
61+
jit = off
6262
max_slot_wal_keep_size = 80GB
6363
track_wal_io_timing = on
6464
maintenance_io_concurrency = 100
6565
66-
resources:
66+
resources:
6767
# If you do want to specify resources, uncomment the following
6868
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
6969
limits:
@@ -79,4 +79,4 @@ persistentVolume:
7979
size: 800Gi
8080

8181
shmVolume:
82-
sizeLimit: "64Gi"
82+
sizeLimit: "64Gi"

addons/postgresql-cluster/15/plans/standard-32c64g4000/values.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ patroni:
77
max_worker_processes: 64
88
max_parallel_workers: 32
99
max_connections: 2000
10-
max_slot_wal_keep_size: '200 GB'
10+
max_slot_wal_keep_size: "200 GB"
1111

1212
postgresql:
1313
config: |-
@@ -58,12 +58,12 @@ postgresql:
5858
# Advanced features
5959
enable_partitionwise_join = on
6060
enable_partitionwise_aggregate = on
61-
jit = on
61+
jit = off
6262
max_slot_wal_keep_size = 100GB
6363
track_wal_io_timing = on
6464
maintenance_io_concurrency = 100
6565
66-
resources:
66+
resources:
6767
# If you do want to specify resources, uncomment the following
6868
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
6969
limits:
@@ -79,4 +79,4 @@ persistentVolume:
7979
size: 4Ti
8080

8181
shmVolume:
82-
sizeLimit: "32Gi"
82+
sizeLimit: "32Gi"

addons/postgresql-cluster/15/plans/standard-4c16g100/values.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ patroni:
77
max_worker_processes: 8
88
max_parallel_workers: 4
99
max_connections: 2000
10-
max_slot_wal_keep_size: '10 GB'
10+
max_slot_wal_keep_size: "10 GB"
1111

1212
postgresql:
1313
config: |-
@@ -59,12 +59,12 @@ postgresql:
5959
# Advanced features
6060
enable_partitionwise_join = on
6161
enable_partitionwise_aggregate = on
62-
jit = on
63-
max_slot_wal_keep_size = 10GB
62+
jit = off
63+
max_slot_wal_keep_size = 10GB
6464
track_wal_io_timing = on
6565
maintenance_io_concurrency = 100
6666
67-
resources:
67+
resources:
6868
# If you do want to specify resources, uncomment the following
6969
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
7070
limits:
@@ -80,4 +80,4 @@ persistentVolume:
8080
size: 100Gi
8181

8282
shmVolume:
83-
sizeLimit: "8Gi"
83+
sizeLimit: "8Gi"

addons/postgresql-cluster/15/plans/standard-8c32g200/values.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ patroni:
77
max_worker_processes: 16
88
max_parallel_workers: 8
99
max_connections: 2000
10-
max_slot_wal_keep_size: '10 GB'
10+
max_slot_wal_keep_size: "10 GB"
1111

1212
postgresql:
1313
config: |-
@@ -58,12 +58,12 @@ postgresql:
5858
# Advanced features
5959
enable_partitionwise_join = on
6060
enable_partitionwise_aggregate = on
61-
jit = on
61+
jit = off
6262
max_slot_wal_keep_size = 20GB
6363
track_wal_io_timing = on
6464
maintenance_io_concurrency = 100
6565
66-
resources:
66+
resources:
6767
# If you do want to specify resources, uncomment the following
6868
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
6969
limits:
@@ -79,4 +79,4 @@ persistentVolume:
7979
size: 200Gi
8080

8181
shmVolume:
82-
sizeLimit: "16Gi"
82+
sizeLimit: "16Gi"

addons/postgresql-cluster/16/chart/postgresql-cluster-16/templates/statefulset.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ spec:
251251
name: storage-volume
252252
annotations:
253253
{{- if .Values.persistentVolume.annotations }}
254-
{{ toYaml .Values.persistentVolume.annotations | indent 8 }}
254+
{{ toYaml .Values.persistentVolume.annotations | indent 10 }}
255255
{{- end }}
256256
labels:
257257
application: {{ template "patroni.fullname" . }}

0 commit comments

Comments
 (0)