summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorGiteabot <teabot@gitea.io>2023-07-27 19:24:07 +0800
committerGitHub <noreply@github.com>2023-07-27 19:24:07 +0800
commit892e24aaf1b7b623fde20babdff5826158e0e385 (patch)
tree65a8c98b5c11ffe2e258ef486063a34b1c76bee4 /docs
parent666038a06df6356a06d309966a925bf00253e3fa (diff)
downloadgitea-892e24aaf1b7b623fde20babdff5826158e0e385.tar.gz
gitea-892e24aaf1b7b623fde20babdff5826158e0e385.zip
Calculate MAX_WORKERS default value by CPU number (#26177) (#26183)
Diffstat (limited to 'docs')
-rw-r--r--docs/content/administration/config-cheat-sheet.en-us.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/content/administration/config-cheat-sheet.en-us.md b/docs/content/administration/config-cheat-sheet.en-us.md
index d61e23d0cf..f1b703371d 100644
--- a/docs/content/administration/config-cheat-sheet.en-us.md
+++ b/docs/content/administration/config-cheat-sheet.en-us.md
@@ -485,7 +485,7 @@ Configuration at `[queue]` will set defaults for queues with overrides for indiv
- `CONN_STR`: **redis://127.0.0.1:6379/0**: Connection string for the redis queue type. For `redis-cluster` use `redis+cluster://127.0.0.1:6379/0`. Options can be set using query params. Similarly, LevelDB options can also be set using: **leveldb://relative/path?option=value** or **leveldb:///absolute/path?option=value**, and will override `DATADIR`
- `QUEUE_NAME`: **_queue**: The suffix for default redis and disk queue name. Individual queues will default to **`name`**`QUEUE_NAME` but can be overridden in the specific `queue.name` section.
- `SET_NAME`: **_unique**: The suffix that will be added to the default redis and disk queue `set` name for unique queues. Individual queues will default to **`name`**`QUEUE_NAME`_`SET_NAME`_ but can be overridden in the specific `queue.name` section.
-- `MAX_WORKERS`: **10**: Maximum number of worker go-routines for the queue.
+- `MAX_WORKERS`: **(dynamic)**: Maximum number of worker go-routines for the queue. Default value is "CpuNum/2" clipped to between 1 and 10.
Gitea creates the following non-unique queues: