Skip to content

Commit 6839b59

Browse files
committed
Merge pull request #4399 from krancour/logspout-gomaxprocs
fix(logspout): set GOMAXPROCS=1
2 parents 540b9f7 + ecb581b commit 6839b59

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

logspout/logspout.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"net/url"
99
"os"
1010
"regexp"
11+
"runtime"
1112
"strconv"
1213
"strings"
1314
"time"
@@ -185,6 +186,7 @@ func getEtcdValueOrDefault(c *etcd.Client, key string, defaultValue string) stri
185186
}
186187

187188
func main() {
189+
runtime.GOMAXPROCS(1)
188190
debugMode = getopt("DEBUG", "") != ""
189191
port := getopt("PORT", "8000")
190192
endpoint := getopt("DOCKER_HOST", "unix:///var/run/docker.sock")

0 commit comments

Comments
 (0)