agent: Adding a check for GOMAXPROCS. Fixes #10.
This commit is contained in:
parent
85091090c6
commit
6898f23d2d
|
@ -10,6 +10,7 @@ import (
|
|||
"net"
|
||||
"os"
|
||||
"os/signal"
|
||||
"runtime"
|
||||
"strings"
|
||||
"syscall"
|
||||
"time"
|
||||
|
@ -189,6 +190,11 @@ func (c *Command) Run(args []string) int {
|
|||
}
|
||||
c.args = args
|
||||
|
||||
// Check GOMAXPROCS
|
||||
if runtime.GOMAXPROCS(0) == 1 {
|
||||
c.Ui.Error("WARNING: It is highly recommended to set GOMAXPROCS higher than 1")
|
||||
}
|
||||
|
||||
// Setup the log outputs
|
||||
logGate, logWriter, logOutput := c.setupLoggers(config)
|
||||
if logWriter == nil {
|
||||
|
|
Loading…
Reference in New Issue