diff --git a/config.sh b/config.sh new file mode 100755 index 0000000..b3f8a4c --- /dev/null +++ b/config.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +# Setup scaling related environment variables here - https://docs.joinmastodon.org/admin/scaling/ + +# Puma +export WEB_CONCURRENCY=2 # number of worker processes +export MAX_THREADS=5 # the number of threads per process + +# Streaming API +export STREAMING_CLUSTER_NUM=1 # number of worker processes + +# Sidekiq +export SIDEKIQ_THREADS=2 +export DB_POOL=25 # must be at least the same as the number of threads +