// tell monc about log_client so it will know about mon session resets
monc->set_log_client(&log_client);
+ update_log_config();
osd_tp.start();
osd_op_tp.start();
"osd_pg_epoch_persisted_max_stale",
"osd_disk_thread_ioprio_class",
"osd_disk_thread_ioprio_priority",
+ // clog & admin clog
+ "clog_to_monitors",
+ "clog_to_syslog",
+ "clog_to_syslog_facility",
+ "clog_to_syslog_level",
NULL
};
return KEYS;
service.map_bl_cache.set_size(cct->_conf->osd_map_cache_size);
service.map_bl_inc_cache.set_size(cct->_conf->osd_map_cache_size);
}
+ if (changed.count("clog_to_monitors") ||
+ changed.count("clog_to_syslog") ||
+ changed.count("clog_to_syslog_level") ||
+ changed.count("clog_to_syslog_facility")) {
+ update_log_config();
+ }
check_config();
}
+void OSD::update_log_config()
+{
+ map<string,string> log_to_monitors;
+ map<string,string> log_to_syslog;
+ map<string,string> log_channel;
+ map<string,string> log_prio;
+ if (parse_log_client_options(g_ceph_context, log_to_monitors, log_to_syslog,
+ log_channel, log_prio) == 0)
+ clog->update_config(log_to_monitors, log_to_syslog,
+ log_channel, log_prio);
+ derr << "log_to_monitors " << log_to_monitors << dendl;
+}
+
void OSD::check_config()
{
// some sanity checks