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?
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
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
Config.ru
In my notifyapp.rb file
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?