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: 187,867 of 196,612
Downloads: 1,096

Daily

Ranking: 58,947 of 196,584
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,708,767,552bundler
81,405,583,906rake
291,015,768,668rspec
45784,370,991rails
72630,370,189pry
117420,827,774webmock
158334,229,711sidekiq
56395,168,829openssl
88960,210,621delayed_job_active_record
1,00750,916,449standard

Owners

#GravatarHandle
1iconuntechnickle