Skip to content

Rate this page
Thanks for your feedback
Thank you! The feedback has been submitted.

Get free database assistance or contact our experts for personalized support.

Configure environment variables

You can configure environment variables in Percona Operator for XtraDB Cluster for the following purposes:

  1. Operator environment variables - To control the Operator’s behavior, such as logging, telemetry, and backup operations. These are set directly in the Operator Deployment.

  2. Cluster component environment variables - To customize the behavior of cluster components (Percona XtraDB Cluster, HAProxy, ProxySQL). These are stored in Kubernetes Secrets and referenced in your cluster configuration.

When to use environment variables

Type Use cases
Operator environment variables - Control logging for better debugging and log aggregation
- Manage telemetry
- Optimize backup performance by setting the number of concurrent S3 workers
- Configure the number of namespaces for the Operator to watch
- Adjust concurrent reconciliation operations for better performance in multi-cluster environments
Cluster component environment variables - Customize HAProxy
- Optimize MySQL performance via alternative memory allocators like jemalloc
- Configure ProxySQL
- Configure monitoring and observability settings in PMM Client
- Handle network policies

Last update: December 4, 2025
Created: December 4, 2025