szurubooru/server
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
..
szurubooru server/config: fix deprecated database string format 2022-02-08 09:58:56 -05:00
.dockerignore client+server: implement code autoformatting using prettier and black 2020-06-06 08:58:23 -04:00
.flake8 client+server: implement code autoformatting using prettier and black 2020-06-06 08:58:23 -04:00
alembic.ini PR fixes 2020-06-02 17:43:18 -07:00
config.yaml.dist client+server: add tag category ordering feature 2020-09-19 22:55:17 +02:00
dev-requirements.txt server/tests: use postgresql test database 2020-03-06 18:15:25 -05:00
docker-start.sh Make waitress thread count configurable. 2022-02-14 17:33:23 -05:00
Dockerfile Make waitress thread count configurable. 2022-02-14 17:33:23 -05:00
pyproject.toml client+server: implement code autoformatting using prettier and black 2020-06-06 08:58:23 -04:00
requirements.txt server/func/images: upgrade to heif-image-plugin 2022-02-08 09:58:33 -05:00
szuru-admin client+server: fix linter issues due to updated pre-commit hooks 2020-09-01 14:07:39 -04:00