break;
default:
- dout(0) << " balancer unknown message " << m->get_type() << dendl;
+ derr << " balancer unknown message " << m->get_type() << dendl_impl;
assert(0 == "balancer unknown message");
}
if (cpu.is_open())
cpu >> load.cpu_load_avg;
else
- dout(0) << "input file " PROCPREFIX "'/proc/loadavg' not found" << dendl;
+ derr << "input file " PROCPREFIX "'/proc/loadavg' not found" << dendl_impl;
dout(15) << "get_load " << load << dendl;
return load;
}
bal_code.assign(lua_src.to_str());
bal_version.assign(oid.name);
- dout(0) << "localized balancer, bal_code=" << bal_code << dendl;
+ dout(10) << "localized balancer, bal_code=" << bal_code << dendl;
}
return r;
}
}
mds_import_map[ who ] = m->get_import_map();
- //dout(0) << " load is " << load << " have " << mds_load.size() << dendl;
-
{
unsigned cluster_size = mds->get_mds_map()->get_num_in_mds();
if (mds_load.size() == cluster_size) {
mds_meta_load[i] = l;
if (whoami == 0)
- dout(0) << " mds." << i
+ dout(5) << " mds." << i
<< " " << load
<< " = " << load.mds_load()
<< " ~ " << l << dendl;
pop < g_conf->mds_bal_idle_threshold &&
im->inode != mds->mdcache->get_root() &&
im->inode->authority().first != mds->get_nodeid()) {
- dout(0) << " exporting idle (" << pop << ") import " << *im
+ dout(5) << " exporting idle (" << pop << ") import " << *im
<< " back to mds." << im->inode->authority().first
<< dendl;
mds->mdcache->migrator->export_dir_nicely(im, im->inode->authority().first);
assert(dir->inode->authority().first == target); // cuz that's how i put it in the map, dummy
if (pop <= amount-have) {
- dout(0) << "reexporting " << *dir
+ dout(5) << "reexporting " << *dir
<< " pop " << pop
<< " back to mds." << target << dendl;
mds->mdcache->migrator->export_dir_nicely(dir, target);
double pop = (*import).first;
if (pop < amount-have || pop < MIN_REEXPORT) {
- dout(0) << "reexporting " << *imp
+ dout(5) << "reexporting " << *imp
<< " pop " << pop
<< " back to mds." << imp->inode->authority()
<< dendl;
//fudge = amount - have;
for (list<CDir*>::iterator it = exports.begin(); it != exports.end(); ++it) {
- dout(0) << " - exporting "
+ dout(5) << " - exporting "
<< (*it)->pop_auth_subtree
<< " "
<< (*it)->pop_auth_subtree.meta_load(rebalance_time, mds->mdcache->decayrate)
rd_adj = rdp / mds->get_mds_map()->get_num_in_mds() - rdp;
rd_adj /= 2.0; // temper somewhat
- dout(0) << "replicating dir " << *dir << " pop " << dir_pop << " .. rdp " << rdp << " adj " << rd_adj << dendl;
+ dout(5) << "replicating dir " << *dir << " pop " << dir_pop << " .. rdp " << rdp << " adj " << rd_adj << dendl;
dir->dir_rep = CDir::REP_ALL;
mds->mdcache->send_dir_updates(dir, true);
dir->is_rep() &&
dir_pop < g_conf->mds_bal_unreplicate_threshold) {
// unreplicate
- dout(0) << "unreplicating dir " << *dir << " pop " << dir_pop << dendl;
+ dout(5) << "unreplicating dir " << *dir << " pop " << dir_pop << dendl;
dir->dir_rep = CDir::REP_NONE;
mds->mdcache->send_dir_updates(dir);