worker file split, sending new questions to peers instantly

This commit is contained in:
mrfry 2023-04-24 20:39:15 +02:00
parent 8c4e184741
commit 252826a081
25 changed files with 1016 additions and 705 deletions

View file

@ -23,7 +23,7 @@ databases the pi might not be enough.
The server utilizes multiple CPU cores, long running operations are ran in separate threads. Because
of the implementation, the more cores a CPU has, the server uses more memory, but able to run more
threads, and serve more requests at once. The used cores can be limited with environment variables
(detailed below).
(detailed below, `NS_THREAD_COUNT`).
## Terminology
@ -60,7 +60,7 @@ read them very carefully, you should know about what was created!**
* By default the server redirects all HTTP traffic to HTTPS. To disable this use
`NS_NO_HTTPS_FORCE`
* The server launches a thread for each CPU core. This could be an overkill on 4+ cored CPU-s. Use
`NS_THREAD_COUNT` to restrict the number of threads
`NS_THREAD_COUNT` to restrict the number of threads, and potentially reduce memory usage of the server.
* The setup script can be also used to update and rebuild all git modules if ran after the initial
setup