feat(olp): add desc in schema

This commit is contained in:
William Yang 2021-10-07 16:03:54 +02:00
parent 77f8159ca1
commit 8d8969672b
1 changed files with 12 additions and 5 deletions

View File

@ -399,22 +399,29 @@ fields("force_shutdown") ->
fields("overload_protection") -> fields("overload_protection") ->
[ {"enable", [ {"enable",
sc(boolean(), sc(boolean(),
#{ default => false})} #{ desc => "React on system overload or not"
, default => false
})}
, {"backoff_delay", , {"backoff_delay",
sc(range(0, inf), sc(range(0, inf),
#{ default => 1 #{ desc => "Some unimporant tasks could be delayed"
"for execution, here set the delays in ms"
, default => 1
})} })}
, {"backoff_gc", , {"backoff_gc",
sc(boolean(), sc(boolean(),
#{ default => false #{ desc => "Skip forceful GC if necessary"
, default => false
})} })}
, {"backoff_hibernation", , {"backoff_hibernation",
sc(boolean(), sc(boolean(),
#{ default => true #{ desc => "Skip process hibernation if necessary"
, default => true
})} })}
, {"backoff_new_conn", , {"backoff_new_conn",
sc(boolean(), sc(boolean(),
#{ default => true #{ desc => "Close new incoming connections if necessary"
, default => true
})} })}
]; ];