>=15.0.0
--------
+* MON: The cluster log now logs health detail every ``mon_health_to_clog_interval``,
+ which has been changed from 1hr to 10min. Logging of health detail will be
+ skipped if there is no change in health summary since last known.
+
* The ``ceph df`` command now lists the number of pgs in each pool.
* Monitors now have config option ``mon_allow_pool_size_one``, which is disabled
mon cluster log file level = debug
debug asserts on shutdown = true
+ mon health detail to clog = false
[osd]
osd journal size = 100
OPTION(mon_health_to_clog, OPT_BOOL)
OPTION(mon_health_to_clog_interval, OPT_INT)
OPTION(mon_health_to_clog_tick_interval, OPT_DOUBLE)
+OPTION(mon_health_detail_to_clog, OPT_BOOL)
OPTION(mon_data_avail_crit, OPT_INT)
OPTION(mon_data_avail_warn, OPT_INT)
OPTION(mon_data_size_warn, OPT_U64) // issue a warning when the monitor's data store goes over 15GB (in bytes)
.set_description("log monitor health to cluster log"),
Option("mon_health_to_clog_interval", Option::TYPE_INT, Option::LEVEL_ADVANCED)
- .set_default(1_hr)
+ .set_default(10_min)
.add_service("mon")
.set_description("frequency to log monitor health to cluster log")
.add_see_also("mon_health_to_clog"),
.add_service("mon")
.set_description(""),
+ Option("mon_health_detail_to_clog", Option::TYPE_BOOL, Option::LEVEL_DEV)
+ .set_default(true)
+ .set_description("log health detail to cluster log"),
+
Option("mon_health_max_detail", Option::TYPE_UINT, Option::LEVEL_ADVANCED)
.set_default(50)
.add_service("mon")
summary == health_status_cache.summary &&
level == health_status_cache.overall)
return;
- clog->health(level) << "overall " << summary;
+
+ if (g_conf()->mon_health_detail_to_clog &&
+ summary != health_status_cache.summary &&
+ level != HEALTH_OK) {
+ string details;
+ level = healthmon()->get_health_status(true, nullptr, &details);
+ clog->health(level) << "Health detail: " << details;
+ } else {
+ clog->health(level) << "overall " << summary;
+ }
health_status_cache.summary = summary;
health_status_cache.overall = level;
}