mirror of
https://git.cloudron.io/cloudron/mastodon-app.git
synced 2024-12-11 17:06:29 +00:00
Add config.sh
This commit is contained in:
parent
43522adb8d
commit
df397b03f5
1 changed files with 15 additions and 0 deletions
15
config.sh
Executable file
15
config.sh
Executable file
|
@ -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
|
||||
|
Loading…
Reference in a new issue