Various parameters in Puma, Streaming and Sidekiq can be fine-tuned for concurrency. To change the parameters, edit
/app/data/config.sh using the File manager and restart the app. See
scaling docs for more information.
Sample configuration for
/app/data/config.sh (from
here):
# Puma
export WEB_CONCURRENCY=4 # number of worker processes
export MAX_THREADS=5 # the number of threads per process
# Streaming API
export STREAMING_CLUSTER_NUM=2 # number of worker processes
# Sidekiq
export SIDEKIQ_THREADS=4
export DB_POOL=25 # must be at least the same as the number of threads