Skip to content

Commit

Permalink
[pxc-db] Update PXC CRD to 1.16.0
Browse files Browse the repository at this point in the history
* Update operator image from 1.15.1 to 1.16.0
* Update pxc image from 8.0.36 to 8.0.39
* Use custom build image for cluster init containers
* Update default haproxy image from 2.8.5 to 2.8.11
* Use 1.16.0-pxc8.0-backup-pxb8.0.35 for backup and init jobs
* Set backup jobs activeDeadlineSeconds to 1 hour (default is infinite)
* Increase backoffLimit from 1 to 2
  • Loading branch information
s10 committed Dec 20, 2024
1 parent 9c8b4bc commit 8088ea7
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 15 deletions.
4 changes: 2 additions & 2 deletions common/pxc-db/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.22
version: 0.2.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.15.1"
appVersion: "1.16.0"

dependencies:
- name: owner-info
Expand Down
5 changes: 4 additions & 1 deletion common/pxc-db/templates/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ spec:
{{- if $.Values.initContainer.image.override }}
image: {{ $.Values.initContainer.image.override }}
{{- else }}
image: {{ required ".Values.global.dockerHubMirrorAlternateRegion is missing" .Values.global.dockerHubMirrorAlternateRegion }}/{{ $.Values.initContainer.image.name }}:{{ $.Values.initContainer.image.tag }}
image: {{ required ".Values.global.registryAlternateRegion is missing" .Values.global.registryAlternateRegion }}/{{ $.Values.initContainer.image.name }}:{{ $.Values.initContainer.image.tag }}
{{- end }}
{{- if .Values.initContainer.resources }}
resources:
Expand Down Expand Up @@ -251,6 +251,9 @@ spec:
{{- if $backup.backoffLimit }}
backoffLimit: {{ $backup.backoffLimit }}
{{- end }}
{{- if $backup.activeDeadlineSeconds }}
activeDeadlineSeconds: {{ $backup.activeDeadlineSeconds }}
{{- end }}
pitr:
{{- if not $backup.pitr.enabled }}
enabled: false
Expand Down
26 changes: 14 additions & 12 deletions common/pxc-db/values.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
# Default values for percona-xtradb-cluster.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
Expand Down Expand Up @@ -72,8 +73,8 @@ pause: false

initContainer:
image:
name: percona/percona-xtradb-cluster-operator
tag: 1.15.1
name: percona-xtradb-cluster-operator
tag: 1.16.0
override: null
resources:
requests:
Expand All @@ -87,7 +88,7 @@ pxc:
size: 3
image:
name: percona/percona-xtradb-cluster
tag: 8.0.36-28.1
tag: 8.0.39-30.1
override: null
imagePullPolicy: IfNotPresent
annotations: {}
Expand Down Expand Up @@ -131,17 +132,17 @@ pxc:
wsrep_retry_autocommit: 3
pxc_strict_mode: MASTER # default is ENFORCING
binlog_format: ROW
binlog_expire_logs_seconds: 345600 # default 30 days -> 4 days
sync_binlog: 1 # default value for PXC
binlog_expire_logs_seconds: 345600 # default 30 days -> 4 days
sync_binlog: 1 # default value for PXC
net_read_timeout: 30
net_write_timeout: 60
connect_timeout: 30
wait_timeout: 3800
interactive_timeout: 1800
innodb_lock_wait_timeout: 30 # default 50 seconds -> 30 seconds
innodb_lock_wait_timeout: 30 # default 50 seconds -> 30 seconds
max_connections: 1024
max_connect_errors: "4294967295" # to avoid failed connections because of loadbalancer health checks
innodb_flush_log_at_trx_commit: 1 # for better performance set (2): write at commit, flush once per second
max_connect_errors: "4294967295" # to avoid failed connections because of loadbalancer health checks
innodb_flush_log_at_trx_commit: 1 # for better performance set (2): write at commit, flush once per second
innodb_flush_method: O_DIRECT
innodb_file_per_table: 1
innodb_autoinc_lock_mode: 2
Expand Down Expand Up @@ -228,7 +229,7 @@ haproxy:
size: 2
image:
name: percona/haproxy
tag: 2.8.5
tag: 2.8.11
override: null
imagePullPolicy: Always
annotations: {}
Expand Down Expand Up @@ -325,18 +326,19 @@ haproxy:
initdb:
image:
name: percona/percona-xtradb-cluster-operator
tag: 1.15.1-pxc8.0-backup-pxb8.0.35
tag: 1.16.0-pxc8.0-backup-pxb8.0.35

backup:
enabled: false
annotations: {}
labels: {}
image:
name: percona/percona-xtradb-cluster-operator
tag: 1.15.1-pxc8.0-backup-pxb8.0.35
tag: 1.16.0-pxc8.0-backup-pxb8.0.35
override: null
imagePullPolicy: Always
backoffLimit: 1
backoffLimit: 2
activeDeadlineSeconds: 3600
priority_class: "critical-infrastructure"
resources:
requests: {}
Expand Down

0 comments on commit 8088ea7

Please sign in to comment.