Mercurial > rsstweet
diff 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 |
line wrap: on
line diff
--- a/config/puma.rb Tue Sep 03 19:21:25 2024 +0900 +++ b/config/puma.rb Sun Dec 15 22:45:33 2024 +0900 @@ -1,13 +1,17 @@ # This configuration file will be evaluated by Puma. The top-level methods that # are invoked here are part of Puma's configuration DSL. For more information # about methods provided by the DSL, see https://puma.io/puma/Puma/DSL.html. - +# # Puma starts a configurable number of processes (workers) and each process # serves each request in a thread from an internal thread pool. # +# You can control the number of workers using ENV["WEB_CONCURRENCY"]. You +# should only set this value when you want to run 2 or more workers. The +# default is already 1. +# # The ideal number of threads per worker depends both on how much time the # application spends waiting for IO operations and on how much you wish to -# to prioritize throughput over latency. +# prioritize throughput over latency. # # As a rule of thumb, increasing the number of threads will increase how much # traffic a given process can handle (throughput), but due to CRuby's