rcarvalho-workless 1.0.2.17 → 1.0.2.18
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +13 -1
- metadata +2 -2
data/README.md
CHANGED
@@ -9,7 +9,8 @@ By adding the gem to your project and configuring our Heroku app with some confi
|
|
9
9
|
|
10
10
|
## Update
|
11
11
|
|
12
|
-
Version 1.0.
|
12
|
+
Version 1.0.2.* is released by rcarvalho - added ability to scale workers to a desired number. Also, improved performance by reducing the number of calls to the Heroku API and storing the current number of workers in memcached. Of course, now you have to have caching in your app to
|
13
|
+
utilize this branch.
|
13
14
|
|
14
15
|
## Compatibility
|
15
16
|
|
@@ -87,6 +88,17 @@ The local scaler uses @adamwiggins rush library http://github.com/adamwiggins/ru
|
|
87
88
|
|
88
89
|
The heroku scaler works on the Aspen and Bamboo stacks while the heroku_cedar scaler only works on the new Cedar stack.
|
89
90
|
|
91
|
+
To configure the number of workers in your environment file add the following:
|
92
|
+
|
93
|
+
<pre>
|
94
|
+
Delayed::Job.scaler.scale_info = {
|
95
|
+
0 => 0,
|
96
|
+
100 => 1,
|
97
|
+
500 => 2,
|
98
|
+
1000 => 3
|
99
|
+
}
|
100
|
+
</pre>
|
101
|
+
|
90
102
|
## Note on Patches/Pull Requests
|
91
103
|
|
92
104
|
* Please fork the project, as you can see there are no tests and at present I don't know how to go about adding them so any advice would be welcome.
|