Skip to content

Commit b824d9a

Browse files
committed
use Puma 6 defaults
1 parent 3fc4992 commit b824d9a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/cloud_controller/runners/puma_runner.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ def initialize(config, app, logger, periodic_updater, request_logs)
2020
conf.bind "tcp://0.0.0.0:#{config.get(:external_port)}"
2121
end
2222

23+
# Keep Puma 6 defaults (25/20s) to avoid surprises with Nginx. Puma 7 defaults may be revisited for performance later.
24+
conf.max_keep_alive(25)
25+
conf.persistent_timeout(20)
26+
2327
conf.workers(config.get(:puma, :workers) || 1) unless config.get(:puma, :automatic_worker_count)
2428
num_threads = config.get(:puma, :max_threads) || 1
2529
conf.threads(num_threads, num_threads)

0 commit comments

Comments
 (0)