Judoscale supports any Rack-based Ruby application, not just Rails! The installation simply requires a code change to install the Judoscale request middleware, as you'll see below.
When you launch Judoscale for the first time, you'll be prompted to install the appropriate gems:
You can follow these instructions within the app, or you can follow the same instructions below.
Rack Web Process
Installing Judoscale for the Rack web process is as simple as running
bundle add judoscale-rack! Or if you'd like to manually add to your
Finally, we'll need to inject this middleware into the Rack stack ourselves:
If we're using a background-job processing framework in this project, the next step is to install the corresponding Judoscale adapter for that system. Feel free to skip this step if this project isn't using a background job system. Judoscale currently supports the following frameworks:
gem "judoscale-sidekiq" gem "judoscale-resque" gem "judoscale-delayed_job" gem "judoscale-que"
But you'll just need to install the one that's right for your project.
Finally, we'll run a
bundle install and commit/ship the changes to both our
Gemfile.lock. That's it! The Judoscale gems will automatically start reporting request and job metrics in the background once the new code fires up in your production environment.