OPTION(mds_bal_target_removal_max, 0, OPT_INT, 10), // max balance iterations before old target is removed
OPTION(mds_replay_interval, 0, OPT_FLOAT, 1.0), // time to wait before starting replay again
OPTION(mds_shutdown_check, 0, OPT_INT, 0),
- OPTION(mds_local_osd, 0, OPT_BOOL, false),
OPTION(mds_thrash_exports, 0, OPT_INT, 0),
OPTION(mds_thrash_fragments, 0, OPT_INT, 0),
OPTION(mds_dump_cache_on_map, 0, OPT_BOOL, false),
int mds_shutdown_check;
- bool mds_local_osd;
-
int mds_thrash_exports;
int mds_thrash_fragments;
bool mds_dump_cache_on_map;
// inode
ino = MDS_INO_LOG_OFFSET + mds->get_nodeid();
- //if (g_conf.mds_local_osd)
- //log_inode.layout.fl_pg_preferred = mds->get_nodeid() + g_conf.num_osd; // hack
-
// log streamer
if (journaler) delete journaler;
journaler = new Journaler(ino, mds->mdsmap->get_metadata_pg_pool(), CEPH_FS_ONDISK_MAGIC, mds->objecter,
void OSDMap::build_simple(epoch_t e, ceph_fsid_t &fsid,
- int num_osd, int num_dom, int pg_bits, int pgp_bits, int lpg_bits,
- int mds_local_osd)
+ int num_osd, int num_dom, int pg_bits, int pgp_bits, int lpg_bits)
{
dout(10) << "build_simple on " << num_osd
<< " osds with " << pg_bits << " pg bits per osd, "
set_state(i, 0);
set_weight(i, CEPH_OSD_OUT);
}
-
- if (mds_local_osd) {
- set_max_osd(mds_local_osd+num_osd);
-
- // add mds local osds, but don't put them in the crush mapping func
- for (int i=0; i<mds_local_osd; i++) {
- set_state(i+num_osd, 0);
- set_weight(i+num_osd, CEPH_OSD_OUT);
- }
- }
}
void OSDMap::build_simple_crush_map(CrushWrapper& crush, map<int, const char*>& rulesets, int num_osd,
*/
void build_simple(epoch_t e, ceph_fsid_t &fsid,
int num_osd, int num_dom,
- int pg_bits, int pgp_bits, int lpg_bits,
- int mds_local_osd);
+ int pg_bits, int pgp_bits, int lpg_bits);
static void build_simple_crush_map(CrushWrapper& crush, map<int, const char*>& poolsets, int num_osd, int num_dom=0);
}
ceph_fsid_t fsid;
memset(&fsid, 0, sizeof(ceph_fsid_t));
- osdmap.build_simple(0, fsid, num_osd, num_dom, pg_bits, pgp_bits, lpg_bits, 0);
+ osdmap.build_simple(0, fsid, num_osd, num_dom, pg_bits, pgp_bits, lpg_bits);
modified = true;
}