Skip to content

Commit

Permalink
Enable puma clustered (RefugeRestrooms#654)
Browse files Browse the repository at this point in the history
Enable puma clustered mode to process more requests and reduce latency
  • Loading branch information
brunoocasali authored Nov 1, 2020
1 parent fe195d7 commit 6c63546
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions config/puma.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,7 @@
# Workers do not work on JRuby or Windows (both of which do not support
# processes).
#
# workers ENV.fetch("WEB_CONCURRENCY") { 2 }

# Use the `preload_app!` method when specifying a `workers` number.
# This directive tells Puma to first boot the application and load code
# before forking the application. This takes advantage of Copy On Write
# process behavior so workers use less memory.
#
# preload_app!
workers ENV.fetch("WEB_CONCURRENCY") { 3 }

# Allow puma to be restarted by `rails restart` command.
plugin :tmp_restart

0 comments on commit 6c63546

Please sign in to comment.