Open boonen opened 3 years ago
PATRONI_LOG_LEVEL
check the docs, we allow I think to inject custom environment variables into the statefulset.
@CyberDem0n may know the answer to part two.
Just raised https://github.com/zalando/patroni/issues/1800 which is closely related, I think.
@Jan-M @CyberDem0n I have tried your suggestion to pass the environment variable PATRONI_LOG_LEVEL
to the StatefulSet
, but unfortunately this has no result. It seems that Spilo does not configure Patroni using the supplied environment variable. Do you have any hints on how to get this working?
I'm using the latest build of Spilo (from master) which runs Patroni 2.0.0
. Output of env | grep PATRONI
in the Spilo Pod
returns the following information:
PATRONI_LOG_LEVEL=WARNING
PATRONIVERSION=2.0.0
Did you manage to set the patroni env vars? I also tried the variable PATRONI_LOG_FORMAT
which is completely ignored.
@boonen
A little late, but yes, most environment variables are ignored so that secret information is not leaked. Spilo does this, see the issue I raised here https://github.com/zalando/spilo/issues/718.
`patroni 2.1.7
patroni.yml scope: patroni_cluster name: hostname
log: level: WARNING `
any new to change log level?
Not have ability to operate such basic things for troubleshooting is very critical
For my production postgres clusters I'd like to limit log messages to a reasonable amount. Therefore I want to get rid off all the Patroni log messages that are logged - about every 10 seconds - at the
INFO
level, e.g.:I found in the Patroni documentation that I can set the environment variable
PATRONI_LOG_LEVEL
, but I don't know how I can achieve this when Patroni is managed with the Postgres Operator (I use versionv1.5.0
). I tried setting it in theConfigMap
that I also use to configure WAL backups, but that hadn't any effect. Can anybody point me in the right direction?Besides these Patroni messages I also see the following message about every 30 seconds:
I don't know where it is coming from and how to suppress these message. Again, any help is appreciated.