OPTION(osd_pool_default_pg_num, OPT_INT, 8)
OPTION(osd_pool_default_pgp_num, OPT_INT, 8)
OPTION(osd_map_cache_max, OPT_INT, 250)
+OPTION(osd_map_message_max, OPT_INT, 100) // max maps per MOSDMap message
OPTION(osd_op_threads, OPT_INT, 2) // 0 == no threading
OPTION(osd_max_opq, OPT_INT, 10)
OPTION(osd_disk_threads, OPT_INT, 1)
dout(5) << "send_incremental [" << first << ".." << osdmap.get_epoch() << "]"
<< " to " << dest << dendl;
while (first <= osdmap.get_epoch()) {
- epoch_t last = MIN(first + 100, osdmap.get_epoch());
+ epoch_t last = MIN(first + g_conf->osd_map_message_max, osdmap.get_epoch());
MOSDMap *m = build_incremental(first, last);
mon->messenger->send_message(m, dest);
first = last + 1;
while (since < osdmap->get_epoch()) {
epoch_t to = osdmap->get_epoch();
- if (to - since > 100)
- to = since + 100;
+ if (to - since > g_conf->osd_map_message_max)
+ to = since + g_conf->osd_map_message_max;
MOSDMap *m = build_incremental_map_msg(since, to);
Messenger *msgr = client_messenger;
if (entity_name_t::TYPE_OSD == inst.name._type)