-
Notifications
You must be signed in to change notification settings - Fork 195
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
Make munge log to syslog #943
Labels
Milestone
Comments
This seems look a reasonable idea to me to have it go to syslog. Want to try creating a PR for this change to the ohpc build of munge? |
Sure, lets see... |
jabl
added a commit
to jabl/ohpc
that referenced
this issue
Mar 11, 2019
By default munge writes logs by itself to /var/long/munge/munged.log. This prevents those logs from being forwarded to the log server (e.g. the OpenHPC SMS/admin machine), and in case those logs for one reason or another grows rapidly (e.g. dun/munge#26) it can be a problem for diskless nodes or compute nodes with small partitions for /var/log. This should fix openhpc#943 Signed-off-by: Janne Blomqvist <[email protected]>
Thanks! With your patch and slight tweak to apply it, we should now have munge dumping to syslog. Example from CI environment:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
By default munge writes logs by itself to /var/long/munge/munged.log. This prevents those logs from being forwarded to the log server (e.g. the OpenHPC SMS/admin machine), and in case those logs for one reason or another grows rapidly (e.g. dun/munge#26 ) it can be a problem for diskless nodes (or compute nodes with small partitions where /var/log reside).
Fortunately, munge has an option to instead log to syslog, --syslog, which would solve this problem. To add this option, there's a couple of options
Just add --syslog to the ExecStart line in /usr/lib/systemd/system/munge.service
The munge package has /etc/sysconfig/munge but that isn't actually used anymore since the systemd service file doesn't specify to load environment variables from there. To do this, one could add --syslog to a default DAEMON_OPTS, and add a "EnvironmentFile=-/etc/sysconfig/munge" directive to /usr/lib/systemd/system/munge.service. Apparently upstream is planning something like this in specify daemon options with systemd unit file dun/munge#64
The text was updated successfully, but these errors were encountered: