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
- `QUEUE_TIMEOUT` - Timeout og waiting to begin task processing, default `30000` (30 sec)
52
+
- `MAX_CONCURRENCY` - Limit of concurrent tasks, default `5`
53
+
> NOTE: If you want to calculate custom value, you can use this formula `MAX_CONCURRENCY = (FREE_RAM - 1.5GB) / 0.5GB`, also to prevent stuttering avg formula for CPU is `MAX_CONCURRENCY = CPU_CORES_COUNT * 2`
54
+
- `CONCURRENCY_DISABLE_MEM_LIMITER` - Memory limiter for concurrency, can be disabled with `true`.
55
+
> NOTE: If free memory less than 500MB, new task wouldn't be runned until memory will be free.\
56
+
> For example, when chrome instance will be closed after finishing tasks, memory will be free.\
57
+
> Due to chrome/chromium specific behavior, memory can't be freed immediately, so we need to waitfor it.
58
+
- `TELEGRAM_TOKEN`&`TELEGRAM_CHAT_ID` - Telegram bot token and chat id for sending logs on crash or restart, default `null`
- `SHOW_CHROME` - Show browser window, default `false`. Works only on systems with GUI
61
+
> NOTE: On non GUI systems will crash! If you want to see browser window, you need to set`SHOW_CHROME` to `true` and run server directly on machine, not in Docker.
62
+
63
+
64
+
46
65
# Usage
47
66
48
67
> Example IP `127.0.0.1`.
49
68
>
50
69
> Auth work via header `Authorization`.
51
70
>
52
71
> Auth key loading from `config.json` and overwriting with env `AUTH_KEY`
53
-
>
54
-
> Additional ENVs:
55
-
>>`SESSION_TIMEOUT` - Timeout for request session, default `60000` (1 min)
56
-
>>
57
-
>>`MAX_CONCURRENCY` - Limit of concurrent tasks, default `5`
58
-
>>> NOTE: If you want to calculate custom value, you can use this formula `MAX_CONCURRENCY = (FREE_RAM - 1.5GB) / 0.5GB`, also to prevent stuttering avg formula for CPU is `MAX_CONCURRENCY = CPU_CORES_COUNT * 2`
59
-
>>
60
-
>>`CONCURRENCY_DISABLE_MEM_LIMITER` - Memory limiter for concurrency, can be disabled with `true`.
61
-
>>> NOTE: If free memory less than 500MB, new task wouldn't be runned until memory will be free.\
62
-
> > > For example, when chrome instance will be closed after finishing tasks, memory will be free.\
63
-
> > > Due to chrome/chromium specific behavior, memory can't be freed immediately, so we need to waitfor it.
0 commit comments