TUN-4356: Set AUTOMAXPROCS to the CPU limit when running in a Linux container

This commit is contained in:
Adam Chalmers
2021-05-06 12:22:43 -05:00
committed by Areg Harutyunyan
parent 209091da39
commit 07af2a33b7
28 changed files with 1244 additions and 0 deletions

View File

@@ -10,6 +10,7 @@ import (
homedir "github.com/mitchellh/go-homedir"
"github.com/pkg/errors"
"github.com/urfave/cli/v2"
_ "go.uber.org/automaxprocs"
"github.com/cloudflare/cloudflared/cmd/cloudflared/access"
"github.com/cloudflare/cloudflared/cmd/cloudflared/cliutil"