add a stats counter for clients dropped due to recursive-clients limit

(cherry picked from commit 715afa9c57)
This commit is contained in:
Evan Hunt
2019-11-26 11:20:12 -08:00
parent 0f7676c8fe
commit d445121c26
5 changed files with 26 additions and 2 deletions
+4 -1
View File
@@ -278,8 +278,11 @@ ns_client_killoldestquery(ns_client_t *client) {
ISC_LIST_UNLINK(client->manager->recursing, oldest, rlink);
UNLOCK(&client->manager->reclock);
ns_query_cancel(oldest);
} else
ns_stats_increment(client->sctx->nsstats,
ns_statscounter_reclimitdropped);
} else {
UNLOCK(&client->manager->reclock);
}
}
void
+3 -1
View File
@@ -104,7 +104,9 @@ enum {
ns_statscounter_tcphighwater = 65,
ns_statscounter_max = 66,
ns_statscounter_reclimitdropped = 66,
ns_statscounter_max = 67,
};
void