From abb4d4240679e213ab748fb96d1d4674e8cec272 Mon Sep 17 00:00:00 2001 From: ieQu1 <99872536+ieQu1@users.noreply.github.com> Date: Tue, 29 Mar 2022 15:10:57 +0200 Subject: [PATCH] docs(schema): Document conn_congestion fields --- apps/emqx/src/emqx_schema.erl | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/apps/emqx/src/emqx_schema.erl b/apps/emqx/src/emqx_schema.erl index b2c51b853..dba6bfe4f 100644 --- a/apps/emqx/src/emqx_schema.erl +++ b/apps/emqx/src/emqx_schema.erl @@ -762,12 +762,23 @@ fields("conn_congestion") -> {"enable_alarm", sc( boolean(), - #{default => false} + #{ + default => false, + desc => "Enable or disable connection congestion alarm." + } )}, {"min_alarm_sustain_duration", sc( duration(), - #{default => "1m"} + #{ + default => "1m", + desc => + "Minimal time before clearing the alarm.\n\n" + "The alarm is cleared only when there're no pending data in\n" + "the queue, and at least `min_alarm_sustain_duration`\n" + "milliseconds passed since the last time we considered the connection \"congested\".\n\n" + "This is to avoid clearing and raising the alarm again too often." + } )} ]; fields("force_gc") ->