Commit graph

9 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
1a8de9ef3a all: purge remaining elasticsearch artifacts 2020-03-13 22:45:11 -04:00
Shyam Sunder
0a5279c2c1 docker: changed docker hub image location 2019-11-26 19:13:10 -05:00
Shyam Sunder
91f5a42459 docker: switch to DockerHub hosted builds in compose file 2019-09-30 22:12:53 -04:00
Shyam Sunder
54eab0aa35 server/image-hash: optionally allow for elasticsearch authentication 2019-09-15 16:50:47 -04:00
Shyam Sunder
9df090b4d9 doc: simplified how to use the base URL feature 2019-08-14 07:57:56 -04:00
Pika
2484aef492
docker: set ulimits for elasticsearch
this sets the ulimits for elasticsearch to the recommended value of 65536 to avoid errors on startup.
2019-07-09 16:27:17 -04:00
Shyam Sunder
765e1a711b docker: pin postgres version to 11
Closes #213. PostgreSQL v11's end of life is November 9th, 2023
2019-05-10 15:56:52 -04:00
Shyam Sunder
987a3aa8f2 docker: make deployment easier 2018-12-22 12:31:25 +01:00