You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/doc/advanced/config-cheat-sheet.en-us.md
+20Lines changed: 20 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -226,6 +226,7 @@ relation to port exhaustion.
226
226
227
227
-`ISSUE_INDEXER_TYPE`: **bleve**: Issue indexer type, currently support: bleve or db, if it's db, below issue indexer item will be invalid.
228
228
-`ISSUE_INDEXER_PATH`: **indexers/issues.bleve**: Index file used for issue search.
229
+
- The next 4 configuration values are deprecated and should be set in `queue.issue_indexer` however are kept for backwards compatibility:
229
230
-`ISSUE_INDEXER_QUEUE_TYPE`: **levelqueue**: Issue indexer queue, currently supports:`channel`, `levelqueue`, `redis`.
230
231
-`ISSUE_INDEXER_QUEUE_DIR`: **indexers/issues.queue**: When `ISSUE_INDEXER_QUEUE_TYPE` is `levelqueue`, this will be the queue will be saved path.
231
232
-`ISSUE_INDEXER_QUEUE_CONN_STR`: **addrs=127.0.0.1:6379 db=0**: When `ISSUE_INDEXER_QUEUE_TYPE` is `redis`, this will store the redis connection string.
@@ -239,6 +240,24 @@ relation to port exhaustion.
239
240
-`MAX_FILE_SIZE`: **1048576**: Maximum size in bytes of files to be indexed.
240
241
-`STARTUP_TIMEOUT`: **30s**: If the indexer takes longer than this timeout to start - fail. (This timeout will be added to the hammer time above for child processes - as bleve will not start until the previous parent is shutdown.) Set to zero to never timeout.
241
242
243
+
## Queue (`queue` and `queue.*`)
244
+
245
+
-`TYPE`: **persistable-channel**: General queue type, currently support: `persistable-channel`, `channel`, `level`, `redis`, `dummy`
246
+
-`DATADIR`: **queues/**: Base DataDir for storing persistent and level queues. `DATADIR` for inidividual queues can be set in `queue.name` sections but will default to `DATADIR/`**`name`**.
247
+
-`LENGTH`: **20**: Maximal queue size before channel queues block
248
+
-`BATCH_LENGTH`: **20**: Batch data before passing to the handler
249
+
-`CONN_STR`: **addrs=127.0.0.1:6379 db=0**: Connection string for the redis queue type.
250
+
-`QUEUE_NAME`: **_queue**: The suffix for default redis queue name. Individual queues will default to **`name`**`QUEUE_NAME` but can be overriden in the specific `queue.name` section.
251
+
-`WRAP_IF_NECESSARY`: **true**: Will wrap queues with a timeoutable queue if the selected queue is not ready to be created - (Only relevant for the level queue.)
252
+
-`MAX_ATTEMPTS`: **10**: Maximum number of attempts to create the wrapped queue
253
+
-`TIMEOUT`: **GRACEFUL_HAMMER_TIME + 30s**: Timeout the creation of the wrapped queue if it takes longer than this to create.
254
+
- Queues by default come with a dynamically scaling worker pool. The following settings configure this:
255
+
-`WORKERS`: **1**: Number of initial workers for the queue.
256
+
-`MAX_WORKERS`: **10**: Maximum number of worker go-routines for the queue.
257
+
-`BLOCK_TIMEOUT`: **1s**: If the queue blocks for this time, boost the number of workers - the `BLOCK_TIMEOUT` will then be doubled before boosting again whilst the boost is ongoing.
258
+
-`BOOST_TIMEOUT`: **5m**: Boost workers will timeout after this long.
259
+
-`BOOST_WORKERS`: **5**: This many workers will be added to the worker pool if there is a boost.
260
+
242
261
## Admin (`admin`)
243
262
-`DEFAULT_EMAIL_NOTIFICATIONS`: **enabled**: Default configuration for email notifications for users (user configurable). Options: enabled, onmention, disabled
244
263
@@ -614,6 +633,7 @@ You may redefine `ELEMENT`, `ALLOW_ATTR`, and `REGEXP` multiple times; each time
614
633
615
634
## Task (`task`)
616
635
636
+
- Task queue configuration has been moved to `queue.task` however, the below configuration values are kept for backwards compatibilityx:
617
637
-`QUEUE_TYPE`: **channel**: Task queue type, could be `channel` or `redis`.
618
638
-`QUEUE_LENGTH`: **1000**: Task queue length, available only when `QUEUE_TYPE` is `channel`.
619
639
-`QUEUE_CONN_STR`: **addrs=127.0.0.1:6379 db=0**: Task queue connection string, available only when `QUEUE_TYPE` is `redis`. If there redis needs a password, use `addrs=127.0.0.1:6379 password=123 db=0`.
0 commit comments