Skip to content

Commit

Permalink
Re-introduce maxprocs (but quieter) for queue proxy (#9793)
Browse files Browse the repository at this point in the history
* Re-introduce maxprocs (but quieter) for queue proxy

* Update deps
  • Loading branch information
julz authored Oct 13, 2020
1 parent d8a317c commit 49bc456
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/queue/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import (

"github.com/kelseyhightower/envconfig"
"go.opencensus.io/plugin/ochttp"
"go.uber.org/automaxprocs/maxprocs"
"go.uber.org/zap"

"k8s.io/apimachinery/pkg/types"
Expand Down Expand Up @@ -98,6 +99,10 @@ type config struct {
TracingConfigStackdriverProjectID string `split_words:"true"` // optional
}

func init() {
maxprocs.Set()
}

func main() {
flag.Parse()

Expand Down
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ require (
github.com/tsenart/vegeta v12.7.1-0.20190725001342-b5f4fca92137+incompatible
go.opencensus.io v0.22.4
go.uber.org/atomic v1.6.0
go.uber.org/automaxprocs v1.3.0
go.uber.org/zap v1.15.0
golang.org/x/net v0.0.0-20200904194848-62affa334b73
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d
Expand Down
1 change: 1 addition & 0 deletions vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ go.opencensus.io/trace/tracestate
## explicit
go.uber.org/atomic
# go.uber.org/automaxprocs v1.3.0
## explicit
go.uber.org/automaxprocs
go.uber.org/automaxprocs/internal/cgroups
go.uber.org/automaxprocs/internal/runtime
Expand Down

0 comments on commit 49bc456

Please sign in to comment.