From 5a93c690267d0a3ca12304c34b0e4538549fabb1 Mon Sep 17 00:00:00 2001 From: Peter Andersson Date: Thu, 3 May 2018 17:23:16 +0200 Subject: Make it possible to disable sync and drop mode Also add tests and update failing test cases --- lib/kernel/doc/src/logger_chapter.xml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'lib/kernel/doc/src/logger_chapter.xml') diff --git a/lib/kernel/doc/src/logger_chapter.xml b/lib/kernel/doc/src/logger_chapter.xml index 0bc3b37476..5fb81034dc 100644 --- a/lib/kernel/doc/src/logger_chapter.xml +++ b/lib/kernel/doc/src/logger_chapter.xml @@ -700,7 +700,17 @@ my_report_cb(R) ->

For the overload protection algorithm to work properly, it is a requirement that:

-

toggle_sync_qlen < drop_new_reqs_qlen < flush_reqs_qlen

+

toggle_sync_qlen =< drop_new_reqs_qlen =< flush_reqs_qlen

+ +

and that:

+ +

drop_new_reqs_qlen > 1

+ +

If toggle_sync_qlen is set to 0, the handler will handle all + requests synchronously. Setting the value of toggle_sync_qlen to the same + as drop_new_reqs_qlen, disables the synchronous mode. Likewise, setting + the value of drop_new_reqs_qlen to the same as flush_reqs_qlen, + disables the drop mode.

During high load scenarios, the length of the handler message queue rarely grows in a linear and predictable way. Instead, whenever the -- cgit v1.2.3