Update Tuning.md to mention STREAMING_CLUSTER_NUM
(#151)
* Update Tuning.md to mention `STREAMING_CLUSTER_NUM`
This is a new option as documented here: bb04a9be52/.env.production.sample (L90-L92)
* note number of cores - 1
This commit is contained in:
parent
930175e7e9
commit
0282f3d7e4
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ For a single-user instance, 1 process with 5 threads should be more than enough.
|
||||||
|
|
||||||
The streaming API handles long-lived HTTP and WebSockets connections, through which clients receive real-time updates. It is a single-threaded process. By default it has a database connection pool of 10, which means 10 different database queries can run *at the same time*. The database is not heavily used in the streaming API, only for initial authentication of the request, and for some special receiver-specific filter queries when receiving new messages. At the time of writing this value cannot be reconfigured, but mostly doesn't need to.
|
The streaming API handles long-lived HTTP and WebSockets connections, through which clients receive real-time updates. It is a single-threaded process. By default it has a database connection pool of 10, which means 10 different database queries can run *at the same time*. The database is not heavily used in the streaming API, only for initial authentication of the request, and for some special receiver-specific filter queries when receiving new messages. At the time of writing this value cannot be reconfigured, but mostly doesn't need to.
|
||||||
|
|
||||||
If you need to scale up the streaming API, spawn more separate processes on different ports (e.g. 4000, 4001, 4003, etc) and load-balance between them with nginx.
|
If you need to scale up the streaming API, change the `STREAMING_CLUSTER_NUM` in your `.env.production`. If unspecified, this will default to the number of cores on the machine minus 1.
|
||||||
|
|
||||||
### Background processing
|
### Background processing
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue