Method: Duffy::System.sane_load
- Defined in:
- lib/duffy/system.rb
.sane_load ⇒ Object
What is a sane number of threads to use for data processing. You want to leave some headroom for your database etc running in other processes.
55 56 57 |
# File 'lib/duffy/system.rb', line 55 def sane_load threads * 3 / 4 end |