Update puma gem

This commit is contained in:
Vokhmin Alexey V 2015-02-13 02:25:11 +03:00
parent 808cf50d10
commit 818f3bb77a
2 changed files with 4 additions and 4 deletions

View File

@ -326,7 +326,7 @@ GEM
posix-spawn (0.3.9)
protected_attributes (1.0.8)
activemodel (>= 4.0.1, < 5.0)
puma (2.9.1)
puma (2.11.1)
rack (>= 1.1, < 2.0)
pygments.rb (0.6.0)
posix-spawn (~> 0.3.6)

View File

@ -4,7 +4,7 @@ state_path File.join(base_path, 'shared', 'pids', 'puma.state')
bind 'unix:///tmp/rosa_build_unicorn.sock'
environment ENV['RAILS_ENV'] || 'production'
threads *(ENV['PUMA_THREADS'] || '1,3').split(',')
threads *(ENV['PUMA_THREADS'] || '16,16').split(',')
workers ENV['PUMA_WORKERS'] || 7
@ -16,8 +16,8 @@ on_worker_boot do
ActiveRecord::Base.connection.disconnect! rescue ActiveRecord::ConnectionNotEstablished
config = Rails.application.config.database_configuration[Rails.env]
config['reaping_frequency'] = ENV['DB_REAP_FREQ'] || 10 # seconds
config['pool'] = ENV['DB_POOL'] || 3
# config['reaping_frequency'] = ENV['DB_REAP_FREQ'] || 10 # seconds
# config['pool'] = ENV['DB_POOL'] || 3
ActiveRecord::Base.establish_connection(config)