How to increase the verbosity of the MySQL Operator log? As of now, I don’t find any specific settings related to this.
Hey @midson ,
default log level of the operator is INFO
.
You can change it by setting the environment variable LOG_LEVEL
.
- In the deployment of the Operator:
apiVersion: apps/v1
kind: Deployment
metadata:
name: percona-xtradb-cluster-operator
spec:
replicas: 1
...
template:
...
spec:
terminationGracePeriodSeconds: 600
containers:
- command:
- percona-xtradb-cluster-operator
env:
- name: LOG_STRUCTURED
value: 'false'
- name: LOG_LEVEL
value: INFO
If you are using helm, change the logLevel variable. See more info for helm here.
Please let me know if it helps.
Thanks @Sergey_Pronin
I am using ps-operator (not PXC). But Same config is available over there also.
@midson got it. Did it help? Were you able to change the log level for PS operator?
Also I would be curious to learn why you use ps-operator and what benefits do you see in it over PXC?