File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 1
1
# This configuration file will be evaluated by Puma. The top-level methods that
2
2
# are invoked here are part of Puma's configuration DSL. For more information
3
3
# about methods provided by the DSL, see https://puma.io/puma/Puma/DSL.html.
4
-
4
+ #
5
5
# Puma starts a configurable number of processes (workers) and each process
6
6
# serves each request in a thread from an internal thread pool.
7
7
#
8
+ # You can control the number of workers using ENV["WEB_CONCURRENCY"]. You
9
+ # should only set this value when you want to run 2 or more workers. The
10
+ # default is already 1.
11
+ #
8
12
# The ideal number of threads per worker depends both on how much time the
9
13
# application spends waiting for IO operations and on how much you wish to
10
- # to prioritize throughput over latency.
14
+ # prioritize throughput over latency.
11
15
#
12
16
# As a rule of thumb, increasing the number of threads will increase how much
13
17
# traffic a given process can handle (throughput), but due to CRuby's
29
33
# Allow puma to be restarted by `bin/rails restart` command.
30
34
plugin :tmp_restart
31
35
36
+ # Run the Solid Queue supervisor inside of Puma for single-server deployments
37
+ plugin :solid_queue if ENV [ "SOLID_QUEUE_IN_PUMA" ]
38
+
32
39
# Specify the PID file. Defaults to tmp/pids/server.pid in development.
33
40
# In other environments, only set the PID file if requested.
34
41
pidfile ENV [ "PIDFILE" ] if ENV [ "PIDFILE" ]
You can’t perform that action at this time.
0 commit comments