-
Notifications
You must be signed in to change notification settings - Fork 35
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
Change log level on the fly without restart #12296
Comments
Hi, |
Possible solution:
Algorithm for LOG_LEVEL:
|
cc @edwarnicke |
Hello @arp-est , Many thanks for doing this.
Yeah, we have faced a problem in SDK K8s, and those components were not updated. Now that the problem is resolved, could you please rebase these PRs? |
Right away |
Hi, I rebased it but in those prs its not the sdk-k8s, but the regular sdk, that is missing the SetupLevelChangeOnSignal function, I see only the version of sdk-k8s was updated in the go.mod file. |
Overview
Currently the log level can be configured via environment variable
NSM_LOG_LEVEL
which means the process will use the configured value for its whole lifetime. It is fine in most of the cases, but when one would like to change the log level because closer monitoring is needed, it would be expected to be able to do the change without restarting the process that would be monitored. In the vast majority of the cases the restart makes impossible the immediate monitoring action, because after the configuration change we should initiate restart and then just wait for the issue to happen again.For temporary setting it would be good if the log level could be changed via sending IPC signals to the process. For example, if we would like to monitor
forwarder-vpp
then we sendSIGUSR1
to the process and it changes its log level toTRACE
, when we captured the needed logs the original log level can be restored by sending signalSIGUSR2
.The text was updated successfully, but these errors were encountered: