README.md in heroku-resque-workers-scaler-0.2.1 vs README.md in heroku-resque-workers-scaler-0.3.0

- old
+ new

@@ -24,11 +24,11 @@ `Go to your https://api.heroku.com/account` ``` heroku config:add HEROKU_API_KEY=your_api_key -a your_app_name heroku config:add HEROKU_APP_NAME=your_app_name -a your_app_name -heroku config:add export SAFE_MODE=true -a your_app_name +heroku config:add SAFE_MODE=true -a your_app_name ``` ## Run localy You can test when executed this : @@ -56,17 +56,20 @@ You can change the thresholds, environments of execution and the name of your worker process in your project on config/scaler_config.yml Exmple YAML file contents: + mode: :thresholds # :fit, :half, :third thresholds: - :workers: 1 :job_count: 1 - :workers: 2 :job_count: 15 environments: - production worker_name: resque + +if you use `mode: :fit` the number of job is exactly the same of available worker, `:half` the number of worker is 1/2 of number of job in queue, and for `third` 1/3 I just bundled it into a gem for easy inclusion into other projects. #### Usage