[systemd-devel] CompressThreshold= Option
Lennart Poettering
lennart at poettering.net
Mon Feb 26 15:19:05 UTC 2018
On Sa, 24.02.18 16:17, Alex Gartrell (agartrell at fb.com) wrote:
> Hello,
>
> I was looking to add a compression threshold flag to journald to see if we can eek out some additional compression for free-ish (generally speaking, the verbosity of journald logs prevents us from using them super broadly, so far). It's a pretty straightforward change and I have a patch ready, but I just wanted to clarify one design thing to save the PR discussion.
>
> Right now, Compress= is a global setting, in contrast to max file size, etc. which are in JournalMetrics and are Runtime or System specific. I think it could be reasonable to make CompressThreshold= output-specific in addition to Compress=.
>
> I'm wondering which of these choices is the least upsetting:
> 1. Make CompressThreshold= global in the same way that Compress= and
> Seal= are. Add another parameter to the journal_file_open functions
> (compression_threshold)
Yeah, sounds good to me.
BTW, I'd probably name it CompressThresholdBytes= or so, to indicate
the unit is bytes.
Lennart
--
Lennart Poettering, Red Hat
More information about the systemd-devel
mailing list