code: func configureMaxThreads(config *config.Config) error {
  	mt, err := ioutil.ReadFile("/proc/sys/kernel/threads-max")
  	if err != nil {
  		return err
  	}
  	mtint, err := strconv.Atoi(strings.TrimSpace(string(mt)))
  	if err != nil {
  		return err
  	}
  	maxThreads := (mtint / 100) * 90
  	debug.SetMaxThreads(maxThreads)
  	logrus.Debugf("Golang's threads limit set to %d", maxThreads)
  	return nil
  }
docs: // configureMaxThreads sets the Go runtime max threads threshold
  // which is 90% of the kernel setting from /proc/sys/kernel/threads-max