schneems / puma_auto_tune

Puma performance without all the (T)pain
227 stars 19 forks source link

Sinatra 2.1.0 #1

Closed adamrobbie closed 10 years ago

adamrobbie commented 10 years ago

I've playing with the gem in a Sinatra/Ruby 2.1 project of mine, I unfortunately can't confirm it is working.

Steps to reproduce

I start my server via

bundle exec puma config.ru

Config.ru

require File.join(File.dirname(__FILE__), 'notifyapp.rb')
use ActiveRecord::ConnectionAdapters::ConnectionManagement
PumaAutoTune.start
run NotifyApp.new

In my notifyapp.rb file

require 'puma_auto_tune'
PumaAutoTune.config do |config|
   config.ram = 512
   config.frequency = 20
   config.reap_duration = 30 
end

I'm testing locally using siege with a high number of concurrent requests and watching tops, starting with puma default settings of one worker with 16:32 threads I get no workers spinning up. Is this a rails only plugin?

schneems commented 10 years ago

Sorry for the delay, i wasn't "watching" this repo in github (sigh), it's fixed now. You need to call PumaAutoTune.start manually. Let me know if that doesn't work for you and I can re-open