From c299483551952705b80544812f43dd2653287af5 Mon Sep 17 00:00:00 2001 From: Rowan Bohde Date: Sun, 20 Apr 2025 23:41:58 +0000 Subject: [PATCH] Add documentation for request prioritization middleware (#208) This is the documentation side of https://github.com/go-gitea/gitea/pull/33951 Co-authored-by: Lunny Xiao Reviewed-on: https://gitea.com/gitea/docs/pulls/208 Reviewed-by: Lunny Xiao Co-authored-by: Rowan Bohde Co-committed-by: Rowan Bohde --- docs/administration/config-cheat-sheet.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/administration/config-cheat-sheet.md b/docs/administration/config-cheat-sheet.md index 05aed96e..aee44892 100644 --- a/docs/administration/config-cheat-sheet.md +++ b/docs/administration/config-cheat-sheet.md @@ -749,6 +749,13 @@ And the following unique queues: - `DISABLE_ORGANIZATIONS_PAGE`: **false**: Disable the organizations explore page. - `DISABLE_CODE_PAGE`: **false**: Disable the code explore page. +### Request Quality of Service (`qos`) + +- `ENABLED`: **false**: Enable request quality of service and overload protection. +- `MAX_INFLIGHT`: **(dynamic)**: The maximum number of concurrent requests that the server will process before enqueueing new requests. Default is "CpuNum * 4". +- `MAX_WAITING`: **100**: The maximum number of requests that can be enqueued before new requests will be dropped. +- `TARGET_WAIT_TIME`: **250ms**: Target maximum wait time a request may be enqueued for. Requests that are enqueued for less than this amount of time will not be dropped. When wait times exceed this amount, a portion of requests will be dropped until wait times have decreased below this amount. + ## SSH Minimum Key Sizes (`ssh.minimum_key_sizes`) Define allowed algorithms and their minimum key length (use -1 to disable a type):