Skip to content
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.

Commit

Permalink
Merge pull request #23 from wohali/master
Browse files Browse the repository at this point in the history
[COOK-2599] gunicorn provider fails if no node['cpu']['total']
  • Loading branch information
Joshua Timberman committed Apr 1, 2013
2 parents eb3a44b + e790537 commit 14141b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/gunicorn.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
attribute :host, :kind_of => String, :default => '0.0.0.0'
attribute :port, :kind_of => Integer, :default => 8080
attribute :backlog, :kind_of => Integer, :default => 2048
attribute :workers, :kind_of => Integer, :default => [node['cpu']['total'].to_i * 4, 8].min
attribute :workers, :kind_of => Integer, :default => (node['cpu'] && node['cpu']['total']) && [node['cpu']['total'].to_i * 4, 8].min || 8
attribute :worker_class, :kind_of => [String, Symbol], :default => :sync
attribute :worker_connections, :kind_of => Integer, :default => 1000
attribute :max_requests, :kind_of => Integer, :default => 0
Expand Down

0 comments on commit 14141b7

Please sign in to comment.