Categories: None [Edit]

tj-scale

https://rubygems.org/gems/tj-scale
https://github.com/Untechnickle/tj-scale-gem
TJ Scale is a lightweight metrics agent that lets a TJ Scale dashboard autoscale your Heroku dynos based on real queue pressure instead of CPU or memory. Add the gem, set a few environment variables, and a background reporter starts on exactly one dyno (web.1 or worker.1 — your choice). Every few seconds it POSTs a small JSON payload to your dashboard, which applies the scaling rules, limits, and cooldowns you configure there and calls the Heroku Platform API. The gem itself never scales anything, keeping your app free of Heroku credentials. Worker mode reports the number of waiting jobs and the age of the oldest one, from either Delayed Job or Sidekiq (auto-detected). Web mode reports router queue time (via Rack middleware and the X-Request-Start header), request volume, and average response time. Zero-config inside Rails: no initializer needed, everything is driven by environment variables. Requires Rails 6.1+ and Ruby 3.0+. For worker metrics, bring your own queue gem (delayed_job_active_record or sidekiq).

Total

Ranking: 188,504 of 197,314
Downloads: 1,166

Daily

Ranking: 37,902 of 197,258
Downloads: 5

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,821,191,348bundler
81,434,483,085rake
291,027,775,139rspec
45799,370,486rails
72639,375,527pry
118429,441,349webmock
158340,407,010sidekiq
54599,678,705openssl
89061,029,907delayed_job_active_record
99952,538,041standard

Owners

#GravatarHandle
1iconuntechnickle