File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change 46
46
# process behavior so workers use less memory.
47
47
preload_app!
48
48
49
- before_fork do
50
- # NOTE: We use Rolling Restarts on Heroku with Puma web server
51
- # https://devcenter.heroku.com/articles/ruby-memory-use#too-many-workers-over-time
52
- # https://github.com/schneems/puma_worker_killer#only-turn-on-rolling-restarts
53
- require 'puma_worker_killer'
54
-
55
- PumaWorkerKiller . enable_rolling_restart # Default is every 6 hours
56
- end
49
+ # NOTE: Enable this mode when we switch from `single` to `cluster` mode (worker count > 0).
50
+ # https://github.com/puma/puma/issues/2950
51
+ #before_fork do
52
+ # # NOTE: We use Rolling Restarts on Heroku with Puma web server
53
+ # # https://devcenter.heroku.com/articles/ruby-memory-use#too-many-workers-over-time
54
+ # # https://github.com/schneems/puma_worker_killer#only-turn-on-rolling-restarts
55
+ # require 'puma_worker_killer'
56
+ # PumaWorkerKiller.enable_rolling_restart # Default is every 6 hours
57
+ #end
You can’t perform that action at this time.
0 commit comments