-
Notifications
You must be signed in to change notification settings - Fork 498
[FLINK-36192][log] instruct how to change log level dynamically #911
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
Conversation
260878d to
8db1a4b
Compare
docs/content/docs/operations/helm.md
Outdated
| Note, you should remember to escape some special characters in your `--set` lines, for example: | ||
| ``` | ||
| helm install --set defaultConfiguration."log4j-operator\.properties"=rootLogger.level\=DEBUG flink-kubernetes-operator helm/flink-kubernetes-operator | ||
| ``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This took me some time to figure it out. I think it'd be great if we explicitly document it.
SamBarker
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
mxm
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! We usually just restart the operator deployment in case of logging changes, but this is cleaner.
|
@mxm , thanks for the comments. PR updated. Please take a look again. Thanks. |
mxm
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gyfora Are you ok with disabling the monitoring by default?
What is the purpose of the change
In the doc, we didn't explicitly instruct users how to change log level dynamically for operator/job manager/task manager. This is important for troubleshooting, and it is already built-in config in Flink core.
Brief change log
log4j-console.propertiesandlog4j-operator.propertiesin Helm, added a hint to demo how to set config to change config dynamically.Verifying this change
This change is a trivial rework / code cleanup without any test coverage.
Does this pull request potentially affect one of the following parts:
CustomResourceDescriptors: noDocumentation