dynoscale_ruby 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +13 -1
- data/dynoscale_ruby.gemspec +1 -1
- data/lib/dynoscale_ruby/recorder.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 07ef9352043479ecadcc703ee8b1ca093ac305efd99943c4a473ddfe2cd18e12
|
4
|
+
data.tar.gz: 43944936c1bdf3a18c36ecdf89692c1d644aa79339d9a94c028cee12f40bf6f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6aabed0d63014683ecd7a663ff57be7b4f37d60c14ca82b6596800656f8f22e37658b3f4c3cb5a676a25e8d2d60187b90c366b645fb40ea79bc4750ad978ebd6
|
7
|
+
data.tar.gz: 4996cfb58220558a12c16d6cce6bd23a36a36e3435cff84f48214892a107dd508e275d8360d594b9a99c25022a66a156ce9d7c3bfb8a9677080860e0a5bf8b7a
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Dynoscale Ruby
|
2
2
|
|
3
|
-
#### Simple yet efficient scaling agent for Ruby/Rails apps on Heroku
|
3
|
+
#### Simple yet efficient scaling agent for Ruby/Rails apps on Heroku. A better [heroku autoscaling](https://dynoscale.net/blog/why-is-queue-time-more-important-than-backend-request-time-to-auto-scaling) alternative.
|
4
4
|
|
5
5
|
## Getting Started
|
6
6
|
|
@@ -11,6 +11,10 @@
|
|
11
11
|
|
12
12
|
The environment variable `DYNOSCALE_URL` must be set in order for your application to communicate with Dynoscale Servers.
|
13
13
|
|
14
|
+
## Status
|
15
|
+
|
16
|
+
[![Gem Version](https://badge.fury.io/rb/dynoscale_ruby.svg)](https://badge.fury.io/rb/dynoscale_ruby)
|
17
|
+
|
14
18
|
## Non-Rails Rack Based Apps
|
15
19
|
|
16
20
|
In addition to the above steps, you will need to `require 'dynoscale_ruby/middleware'` and add the `DynoscaleRuby::Middleware` before the `Rack::Runtime` in your application.
|
@@ -25,6 +29,14 @@ In addition to the above steps, you will need to `require 'dynoscale_ruby/middle
|
|
25
29
|
|
26
30
|
In addition to Web scaling, Dynoscale collects data on Worker jobs too. At this time Sidekiq and Resque are currently supported.
|
27
31
|
|
32
|
+
## Why use Dynoscale?
|
33
|
+
|
34
|
+
Some blog posts about why Dynoscale is a helpful tool.
|
35
|
+
|
36
|
+
* [Why is Queue Time more important than Backend Request Time to auto scaling?](https://dynoscale.net/blog/why-is-queue-time-more-important-than-backend-request-time-to-auto-scaling)
|
37
|
+
* [How to setup heroku autoscaling in under 15 minutes?](https://dynoscale.net/blog/how-to-setup-heroku-autoscaling-in-under-15-minutes)
|
38
|
+
* [Level up your Heroku autoscaling in 15 minutes](http://localhost:5008/blog/level-up-your-heroku-autoscaling-in-15-minutes)
|
39
|
+
|
28
40
|
## Contributing
|
29
41
|
|
30
42
|
Bug reports and pull requests are welcome on GitHub at https://github.com/Mjolnir-Software/dynoscale_ruby.
|
data/dynoscale_ruby.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
"source_code_uri" => "https://github.com/Mjolnir-Software/dynoscale_ruby",
|
20
20
|
}
|
21
21
|
|
22
|
-
spec.version = '1.0.
|
22
|
+
spec.version = '1.0.2'
|
23
23
|
# Specify which files should be added to the gem when it is released.
|
24
24
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
25
25
|
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
@@ -28,7 +28,7 @@ module DynoscaleRuby
|
|
28
28
|
if worker.enabled?
|
29
29
|
queue_latencies = worker.queue_latencies
|
30
30
|
queue_latencies.each do |queue, latency, depth|
|
31
|
-
@@current_report
|
31
|
+
@@current_report&.add_measurement(current_time, latency, "#{worker.name}:#{queue}", nil)
|
32
32
|
Logger.logger.debug "#{worker.name.capitalize} worker measurement #{current_time}, #{latency} recorded in report."
|
33
33
|
end
|
34
34
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dynoscale_ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Abrahamsen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-05-30 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|