diff options
author | Ilya Mashchenko <ilya@netdata.cloud> | 2024-11-15 00:21:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-15 00:21:27 +0200 |
commit | 8e885779abb78b3cf13baa74e1d7cabae058515d (patch) | |
tree | 195095a86af09b0f3f38987a7c215588e3c4f16b | |
parent | 9978567f9e6bdc8f6172841747710fb7f1b467f6 (diff) |
improvement(go.d.plugin): automatically set GOMAXPROCS (#19023)
-rw-r--r-- | src/go/cmd/godplugin/main.go | 1 | ||||
-rw-r--r-- | src/go/go.mod | 1 | ||||
-rw-r--r-- | src/go/go.sum | 4 |
3 files changed, 6 insertions, 0 deletions
diff --git a/src/go/cmd/godplugin/main.go b/src/go/cmd/godplugin/main.go index 961aa91d1d..b1837f64a3 100644 --- a/src/go/cmd/godplugin/main.go +++ b/src/go/cmd/godplugin/main.go @@ -23,6 +23,7 @@ import ( "golang.org/x/net/http/httpproxy" _ "github.com/netdata/netdata/go/plugins/plugin/go.d/modules" + _ "go.uber.org/automaxprocs" ) var ( diff --git a/src/go/go.mod b/src/go/go.mod index 7b33d352a0..298f2d0705 100644 --- a/src/go/go.mod +++ b/src/go/go.mod @@ -49,6 +49,7 @@ require ( github.com/valyala/fastjson v1.6.4 github.com/vmware/govmomi v0.46.0 go.mongodb.org/mongo-driver v1.17.1 + go.uber.org/automaxprocs v1.6.0 golang.org/x/net v0.31.0 golang.org/x/text v0.20.0 golang.zx2c4.com/wireguard/wgctrl v0.0.0-20220504211119-3d4a969bb56b diff --git a/src/go/go.sum b/src/go/go.sum index 00a0ffa2c5..19951573e0 100644 --- a/src/go/go.sum +++ b/src/go/go.sum @@ -334,6 +334,8 @@ github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINE github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U= github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/prashantv/gostub v1.1.0 h1:BTyx3RfQjRHnUWaGF9oQos79AlQ5k8WNktv7VGvVH4g= +github.com/prashantv/gostub v1.1.0/go.mod h1:A5zLQHz7ieHGG7is6LLXLz7I8+3LZzsrV0P1IAHhP5U= github.com/prometheus-community/pro-bing v0.4.2-0.20241106090159-5a5f1d731cf5 h1:zHS7rMBAaRLMQUlKPT/gFHQVn3RldvPBNNDSpIB6WtM= github.com/prometheus-community/pro-bing v0.4.2-0.20241106090159-5a5f1d731cf5/go.mod h1:zZf++wJG7OTBQY+deqxF1XgN9GqlbYPCPZPd1aX9wqQ= github.com/prometheus/client_model v0.6.1 h1:ZKSh/rekM+n3CeS952MLRAdFwIKqeY8b62p8ais2e9E= @@ -432,6 +434,8 @@ go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= go.uber.org/atomic v1.5.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= go.uber.org/atomic v1.6.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= +go.uber.org/automaxprocs v1.6.0 h1:O3y2/QNTOdbF+e/dpXNNW7Rx2hZ4sTIPyybbxyNqTUs= +go.uber.org/automaxprocs v1.6.0/go.mod h1:ifeIMSnPZuznNm6jmdzmU3/bfk01Fe2fotchwEFJ8r8= go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= go.uber.org/multierr v1.3.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4= go.uber.org/multierr v1.5.0/go.mod h1:FeouvMocqHpRaaGuG9EjoKcStLC43Zu/fmqdUMPcKYU= |