OPTION(mon_client_hunt_interval, OPT_DOUBLE, 3.0) // try new mon every N seconds until we connect
OPTION(mon_client_ping_interval, OPT_DOUBLE, 10.0) // ping every N seconds
OPTION(mon_client_max_log_entries_per_message, OPT_INT, 1000)
+OPTION(mon_max_pool_pg_num, OPT_INT, 65536)
OPTION(client_cache_size, OPT_INT, 16384)
OPTION(client_cache_mid, OPT_FLOAT, .75)
OPTION(client_use_random_mds, OPT_BOOL, false)
int pg_num = 0;
int pgp_num = 0;
- /* Don't allow over 65535 pgs in a single pool */
pg_num = parse_pos_long(m->cmd[4].c_str(), &ss);
- if ((pg_num == 0) || (pg_num > 65535)) {
- ss << "'pg_num' must be greater than 0 and lower or equal than 65535";
+ if ((pg_num == 0) || (pg_num > g_conf->mon_max_pool_pg_num)) {
+ ss << "'pg_num' must be greater than 0 and less than or equal to "
+ << g_conf->mon_max_pool_pg_num
+ << " (you may adjust 'mon max pool pg num' for higher values)";
err = -ERANGE;
goto out;
}