Skip to content

Commit

Permalink
ramp up at 200 jobs, not 500
Browse files Browse the repository at this point in the history
  • Loading branch information
sorens committed Aug 11, 2011
1 parent e3b84b0 commit 4f9ebbb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/workless/scalers/heroku.rb
Expand Up @@ -11,7 +11,7 @@ class Heroku < Base
def up
if workers == 0
client.set_workers(ENV['APP_NAME'], 1)
elsif workers < 2 and jobs.count > 500
elsif workers < 2 and jobs.count > 200
client.set_workers(ENV['APP_NAME'], 10)
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/workless/scalers/local.rb
Expand Up @@ -9,7 +9,7 @@ class Local < Base
def up
if workers == 0
Rush::Box.new[Rails.root].bash("rake jobs:work", :background => true)
elsif workers < 2 and jobs.count > 500
elsif workers < 2 and jobs.count > 200
for i in (1..10)
Rush::Box.new[Rails.root].bash("rake jobs:work", :background => true)
end
Expand Down

0 comments on commit 4f9ebbb

Please sign in to comment.