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,704 of 198,225
Downloads: 1,209

Daily

Ranking: 132,668 of 198,184
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,911,954,765bundler
81,456,522,763rake
291,037,342,164rspec
45811,552,373rails
73646,693,402pry
118436,452,102webmock
157345,718,571sidekiq
533103,614,531openssl
88961,646,105delayed_job_active_record
99153,841,683standard

Owners

#GravatarHandle
1iconuntechnickle