Method: Bolt::Config#default_concurrency

Defined in:
lib/bolt/config.rb

#default_concurrencyObject



498
499
500
501
502
503
504
# File 'lib/bolt/config.rb', line 498

def default_concurrency
  @default_concurrency ||= if !sc_open_max_available? || Etc.sysconf(Etc::SC_OPEN_MAX) >= 300
                             DEFAULT_DEFAULT_CONCURRENCY
                           else
                             Etc.sysconf(Etc::SC_OPEN_MAX) / 7
                           end
end