diff --git a/cmd/influxd/run/command.go b/cmd/influxd/run/command.go index e7974a3f4b..f9a4561d10 100644 --- a/cmd/influxd/run/command.go +++ b/cmd/influxd/run/command.go @@ -67,14 +67,14 @@ func (cmd *Command) Run(args ...string) error { // Print sweet InfluxDB logo. fmt.Print(logo) + // Set parallelism. + runtime.GOMAXPROCS(runtime.NumCPU()) + // Mark start-up in log. log.Printf("InfluxDB starting, version %s, branch %s, commit %s, built %s", cmd.Version, cmd.Branch, cmd.Commit, cmd.BuildTime) log.Printf("Go version %s, GOMAXPROCS set to %d", runtime.Version(), runtime.GOMAXPROCS(0)) - // Set parallelism. - runtime.GOMAXPROCS(runtime.NumCPU()) - // Write the PID file. if err := cmd.writePIDFile(options.PIDFile); err != nil { return fmt.Errorf("write pid file: %s", err)