Skip to content

Instantly share code, notes, and snippets.

@raws
Created January 18, 2018 18:19
Show Gist options
  • Save raws/b3e0e8340fab9184028b9d8dbdd5e572 to your computer and use it in GitHub Desktop.
Save raws/b3e0e8340fab9184028b9d8dbdd5e572 to your computer and use it in GitHub Desktop.
Puma config snippet
workers Integer(ENV.fetch('WEB_CONCURRENCY', '2')) / 2
threads_count = ENV.fetch('RAILS_MAX_THREADS', '2')
threads threads_count, threads_count
preload_app!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment