OPTION(mon_client_hunt_interval_backoff, OPT_DOUBLE) // each time we reconnect to a monitor, double our timeout
OPTION(mon_client_hunt_interval_max_multiple, OPT_DOUBLE) // up to a max of 10*default (30 seconds)
OPTION(mon_client_max_log_entries_per_message, OPT_INT)
+OPTION(mon_client_directed_command_retry, OPT_INT)
OPTION(client_cache_size, OPT_INT)
OPTION(client_cache_mid, OPT_FLOAT)
OPTION(client_use_random_mds, OPT_BOOL)
.set_default(1000)
.set_description(""),
+ Option("mon_client_directed_command_retry", Option::TYPE_INT, Option::LEVEL_DEV)
+ .set_default(2)
+ .set_description("Number of times to try sending a comamnd directed at a specific monitor"),
+
Option("mon_max_pool_pg_num", Option::TYPE_UINT, Option::LEVEL_ADVANCED)
.set_default(65536)
.set_description(""),
if (r->target_rank >= 0 &&
r->target_rank != monmap.get_rank(peer)) {
- if (r->send_attempts > 1) {
+ if (r->send_attempts > cct->_conf->mon_client_directed_command_retry) {
_finish_command(r, -ENXIO, "mon unavailable");
return;
}
if (r->target_name.length() &&
r->target_name != monmap.get_name(peer)) {
- if (r->send_attempts > 1) {
+ if (r->send_attempts > cct->_conf->mon_client_directed_command_retry) {
_finish_command(r, -ENXIO, "mon unavailable");
return;
}