From 0699b2ef01f2074c435b7307a65cc0c1bab930b6 Mon Sep 17 00:00:00 2001 From: Tomislav Plavcic Date: Wed, 31 Jan 2024 16:40:20 +0100 Subject: [PATCH] Update values in pxc-db for pmm pxcParams and proxysqlParam --- charts/pxc-db/README.md | 4 ++-- charts/pxc-db/templates/cluster.yaml | 6 +++--- charts/pxc-db/values.yaml | 2 ++ 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/charts/pxc-db/README.md b/charts/pxc-db/README.md index cc2a8583..a92e6323 100644 --- a/charts/pxc-db/README.md +++ b/charts/pxc-db/README.md @@ -215,8 +215,8 @@ The chart can be customized using the following configurable parameters: | `pmm.serverUser` | Username for accessing PXC database internals | `admin` | | `pmm.resources.requests` | PMM Container resource requests | `{"memory": "150M", "cpu": "300m"}` | | `pmm.resources.limits` | PMM Container resource limits | `{}` | -| `pmm.proxysqlParams` | [Additional PMM parameters](https://docs.percona.com/percona-operator-for-mysql/pxc/monitoring.html#specify-additional-pmm-parameters) | `{}` | -| `pmm.pxcParams` | [Additional PMM parameters](https://docs.percona.com/percona-operator-for-mysql/pxc/monitoring.html#specify-additional-pmm-parameters) | `{}` | +| `pmm.pxcParams` | Additional parameters which will be passed to the [pmm-admin add mysql](https://www.percona.com/doc/percona-monitoring-and-management/2.x/setting-up/client/mysql.html?_gl=1*t3eio1*_gcl_au*MTY4MTY4NTU3Ny4xNzA2NzE1MTgx#adding-mysql-service-monitoring) command for `pxc` Pods | `""` | +| `pmm.proxysqlParams` | Additional parameters which will be passed to the [pmm-admin add mysql](https://www.percona.com/doc/percona-monitoring-and-management/2.x/setting-up/client/mysql.html?_gl=1*izdl5l*_gcl_au*MTY4MTY4NTU3Ny4xNzA2NzE1MTgx#adding-mysql-service-monitoring) command for proxysql Pods | `""` | | | | `backup.enabled` | Enables backups for PXC cluster | `true` | | `backup.allowParallel` | Allow taking multiple backups in parallel | `true` | diff --git a/charts/pxc-db/templates/cluster.yaml b/charts/pxc-db/templates/cluster.yaml index 15d50766..a581e01f 100644 --- a/charts/pxc-db/templates/cluster.yaml +++ b/charts/pxc-db/templates/cluster.yaml @@ -473,12 +473,12 @@ spec: {{- end }} serverHost: {{ $pmm.serverHost }} serverUser: {{ $pmm.serverUser }} - {{- if $pmm.proxysqlParams }} - proxysqlParams: {{ $pmm.proxysqlParams }} - {{- end }} {{- if $pmm.pxcParams }} pxcParams: {{ $pmm.pxcParams }} {{- end }} + {{- if $pmm.proxysqlParams }} + proxysqlParams: {{ $pmm.proxysqlParams }} + {{- end }} resources: requests: {{ tpl ($pmm.resources.requests | toYaml) $ | indent 8 }} diff --git a/charts/pxc-db/values.yaml b/charts/pxc-db/values.yaml index e967e975..6e90f9bb 100644 --- a/charts/pxc-db/values.yaml +++ b/charts/pxc-db/values.yaml @@ -477,6 +477,8 @@ pmm: imagePullSecrets: [] serverHost: monitoring-service serverUser: admin + # pxcParams: "--disable-tablestats-limit=2000" + # proxysqlParams: "--custom-labels=CUSTOM-LABELS" resources: requests: memory: 150M