docs: def _calculate_workers():
      '''
      Determine the number of worker processes based on the CPU
      count of the unit containing the application.
  
      Workers will be limited to MAX_DEFAULT_WORKERS in
      container environments where no worker-multipler configuration
      option been set.
  
      @returns int: number of worker processes to use
      '''
      multiplier = config('worker-multiplier') or DEFAULT_MULTIPLIER
      count = int(_num_cpus() * multiplier)
      if multiplier > 0 and count == 0:
          count = 1
  
      if config('worker-multiplier') is None and is_container():
          # NOTE(jamespage): Limit unconfigured worker-multiplier
          #                  to MAX_DEFAULT_WORKERS to avoid insane
          #                  worker configuration in LXD containers
          #                  on large servers
          # Reference: https://pad.lv/1665270
          count = min(count, MAX_DEFAULT_WORKERS)
  
      return count