Commit graph

4 commits

Author SHA1 Message Date
noirscape
82541536af Make waitress thread count configurable.
This should fix most scaling problems without needing to start
more server instances. By default, waitress maintains at most
4 threads. This works fine if the database is small (sub 100k posts)
but causes a large Task queue depth to occur if the database is larger.

Letting users increase the amount of threads means that one server instance
is able to handle more requests without locking up the rest of the site.

This adds a new environment variable to .env, THREADS, which can be used to
configure the amount of threads to start and is by default set to 4
(the default amount used by waitress).
2022-02-14 17:33:23 -05:00
Shyam Sunder
c0d0c4c894 client+server: normalize trailing newlines 2020-06-05 10:54:32 -04:00
Shyam Sunder
9df090b4d9 doc: simplified how to use the base URL feature 2019-08-14 07:57:56 -04:00
Shyam Sunder
48e7eb10f1 doc: moved documentation to a seperate folder 2019-08-05 19:20:41 -04:00
Renamed from example.env (Browse further)