comparison config/puma.rb @ 255:eda83610b65c

Update rails and stuff
author nanaya <me@nanaya.net>
date Sun, 15 Dec 2024 22:45:33 +0900
parents 89f6c0016bab
children
comparison
equal deleted inserted replaced
254:89f6c0016bab 255:eda83610b65c
1 # This configuration file will be evaluated by Puma. The top-level methods that 1 # This configuration file will be evaluated by Puma. The top-level methods that
2 # are invoked here are part of Puma's configuration DSL. For more information 2 # are invoked here are part of Puma's configuration DSL. For more information
3 # about methods provided by the DSL, see https://puma.io/puma/Puma/DSL.html. 3 # about methods provided by the DSL, see https://puma.io/puma/Puma/DSL.html.
4 4 #
5 # Puma starts a configurable number of processes (workers) and each process 5 # Puma starts a configurable number of processes (workers) and each process
6 # serves each request in a thread from an internal thread pool. 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 # The ideal number of threads per worker depends both on how much time the 12 # The ideal number of threads per worker depends both on how much time the
9 # application spends waiting for IO operations and on how much you wish to 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 # As a rule of thumb, increasing the number of threads will increase how much 16 # As a rule of thumb, increasing the number of threads will increase how much
13 # traffic a given process can handle (throughput), but due to CRuby's 17 # traffic a given process can handle (throughput), but due to CRuby's
14 # Global VM Lock (GVL) it has diminishing returns and will degrade the 18 # Global VM Lock (GVL) it has diminishing returns and will degrade the
15 # response time (latency) of the application. 19 # response time (latency) of the application.