MDSplus / mdsplus

The MDSplus data management system
https://mdsplus.org/
Other
73 stars 44 forks source link

Make `mdsip` logging compatible with the automatic log management features provided by the operating system #2803

Open mwinkel-dev opened 2 months ago

mwinkel-dev commented 2 months ago

Affiliation MIT PSFC

Description Desirable to have mdsip logs compatible with the standard log management features provided by the operating system. (Presently, the mdsip logs require manual management.)

On Linux with systemd, this involves the journalctl facility and its associated options: --rotate, --vacuum-time, --vacuum-size, --vacuum-files. Presumably other platforms have comparable log management features.

Example n/a

Additional context Noticed that on one server, the mdsip_submit log consumed ~55% of the root volume (disk was ~90% full). To avoid system crash had to manually truncate the log, thereby releasing ~113 GB of disk space (usage dropped to ~35% full). Would be nice if mdsip logs were instead managed automatically.

WhoBrokeTheBuild commented 2 months ago

That would be good, or we could ship some config files for logrotate to handle the .log files