]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/LogMonitor: Use generic cluster log level config 57521/head
authorPrashant D <pdhange@redhat.com>
Mon, 8 Aug 2022 14:55:23 +0000 (10:55 -0400)
committerPrashant D <pdhange@redhat.com>
Thu, 16 May 2024 16:10:53 +0000 (12:10 -0400)
commitb62a64f91033dc5dfc7715373753d2f5a6508d9c
tree7a163de6f32e525b36ce51d7ec839db08ad53f87
parent7980b7d3e83ec649c86c0eb52c717d5130c683ee
mon/LogMonitor: Use generic cluster log level config

We do not control the verbosity of the LogEntry
which is getting logged to stderr, graylog and
journald. This causes excessive flooding of logs
to /var/log, making a filesystem to fill up quickly.
Also we have different config variables namely
mon_cluster_log_file_level and mon_cluster_log_to_syslog_level
to control verbosity at cluster log file and
syslog level respectively. Add a generic cluster log
level config variable which controls cluster log
verbosity for all external entities.

Additionally, this patch addresses the regression of
`mon_cluster_log_file_level` option which doesn't take effect
because of code refactoring of LogMonitor::update_from_paxos
(commit : 7c84e06).

Fixes: https://tracker.ceph.com/issues/57061
Fixes: https://tracker.ceph.com/issues/57049
Signed-off-by: Prashant D <pdhange@redhat.com>
(cherry picked from commit cb0d4a57bd25d32919f7ed44815b4301f41e9508)
PendingReleaseNotes
qa/standalone/ceph-helpers.sh
qa/standalone/mon/mon-cluster-log.sh [new file with mode: 0755]
src/common/options/mon.yaml.in
src/mon/LogMonitor.cc
src/mon/LogMonitor.h