-
Notifications
You must be signed in to change notification settings - Fork 211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to specify ZK instance log configuration #252
Comments
Are you changing the log configurations at the time of fresh installation or later? |
Well, I don't think it makes much of a difference AFAIK. |
Yes you are correct. At the time of restart also, we are copying the log4j-quiet.proerties. https://github.com/pravega/zookeeper-operator/blob/master/docker/bin/zookeeperStart.sh#L159 |
If only I could tell ZooKeeper to use |
@dalbani If i understood correctly, requirement to set log level to ERROR, rather than INFO. But currently |
@dalbani Could you please confirm if above is the requirement |
@anishakj apiVersion: zookeeper.pravega.io/v1beta1
kind: ZookeeperCluster
spec:
...
pod:
...
env:
- name: ZOO_LOG4J_PROP
value: 'ERROR,CONSOLE' Based on the code at https://github.com/apache/zookeeper/blob/master/bin/zkEnv.sh#L73. (In my case, as a ZooKeeper user via the Solr operator, I'd still have to figure out how to pass this |
We can add ENV to mention log level. But not sure if log level is mentioned via log4j-properties as well as ENV which one will take preference. Currently we are using log4j-properties and is hardcoded to INFO. |
By setting env in https://github.com/pravega/zookeeper-operator/blob/master/charts/zookeeper/values.yaml#L19 , logs are coming correctly for the pods according to the loge level set. Can we close this issue in that case? |
Yes, that's fine. Thank you. |
The ZK operator generates a
ConfigMap
containing several items:zoo.cfg
log4j.properties
log4j-quiet.properties
env.sh
And these files get copied to the
/data/conf
directory which is used by ZooKeeper if I'm not mistaken.I would like to configure the ZooKeeper instances to use
log4j-quiet.properties
instead oflog4j.properties
.How can I do that? Given the fact the
ConfigMap
gets overwritten at the reconciliation phase by the way.The text was updated successfully, but these errors were encountered: