Skip to content

Commit 020cc45

Browse files
authored
Starting using weaveworks common fork (#6386)
* Starting using weaveworks common fork Signed-off-by: alanprot <[email protected]> * update weavewrworks Signed-off-by: alanprot <[email protected]> * bring weaveworks common with the workers change Signed-off-by: alanprot <[email protected]> * Changelog Signed-off-by: alanprot <[email protected]> --------- Signed-off-by: alanprot <[email protected]>
1 parent 9b1ba23 commit 020cc45

File tree

22 files changed

+63
-254
lines changed

22 files changed

+63
-254
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
* [ENHANCEMENT] StoreGateway: Add new `cortex_bucket_store_chunk_pool_inuse_bytes` metric to track the usage in chunk pool. #6310
4242
* [ENHANCEMENT] Distributor: Add new `cortex_distributor_inflight_client_requests` metric to track number of ingester client inflight requests. #6358
4343
* [ENHANCEMENT] Distributor: Expose `cortex_label_size_bytes` native histogram metric. #6372
44+
* [ENHANCEMENT] Add new option `-server.grpc_server-num-stream-workers` to configure the number of worker goroutines that should be used to process incoming streams. #6386
4445
* [BUGFIX] Runtime-config: Handle absolute file paths when working directory is not / #6224
4546
* [BUGFIX] Ruler: Allow rule evaluation to complete during shutdown. #6326
4647
* [BUGFIX] Ring: update ring with new ip address when instance is lost, rejoins, but heartbeat is disabled #6271

docs/configuration/config-file-reference.md

+6
Original file line numberDiff line numberDiff line change
@@ -5417,6 +5417,12 @@ grpc_tls_config:
54175417
# CLI flag: -server.grpc-max-concurrent-streams
54185418
[grpc_server_max_concurrent_streams: <int> | default = 100]
54195419
5420+
# Number of worker goroutines that should be used to process incoming
5421+
# streams.Setting this 0 (default) will disable workers and spawn a new
5422+
# goroutine for each stream.
5423+
# CLI flag: -server.grpc_server-num-stream-workers
5424+
[grpc_server_num_stream_workers: <int> | default = 0]
5425+
54205426
# The duration after which an idle connection should be closed. Default:
54215427
# infinity
54225428
# CLI flag: -server.grpc.keepalive.max-connection-idle

go.mod

+4-4
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ require (
8080
github.com/bboreham/go-loser v0.0.0-20230920113527-fcc2c21820a3
8181
github.com/cespare/xxhash/v2 v2.3.0
8282
github.com/google/go-cmp v0.6.0
83-
github.com/sercand/kuberesolver/v4 v4.0.0
83+
github.com/sercand/kuberesolver/v5 v5.1.1
8484
go.opentelemetry.io/collector/pdata v1.20.0
8585
golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8
8686
google.golang.org/protobuf v1.35.2
@@ -246,6 +246,9 @@ require (
246246
k8s.io/utils v0.0.0-20240711033017-18e509b52bc8 // indirect
247247
)
248248

249+
// Using cortex fork of weaveworks/common
250+
replace github.com/weaveworks/common => github.com/cortexproject/weaveworks-common v0.0.0-20241129212437-96019edf21f1
251+
249252
// Override since git.apache.org is down. The docs say to fetch from github.
250253
replace git.apache.org/thrift.git => github.com/apache/thrift v0.0.0-20180902110319-2566ecd5d999
251254

@@ -270,8 +273,5 @@ replace github.com/google/gnostic => github.com/googleapis/gnostic v0.6.9
270273
// https://github.com/thanos-io/thanos/blob/fdeea3917591fc363a329cbe23af37c6fff0b5f0/go.mod#L265
271274
replace gopkg.in/alecthomas/kingpin.v2 => github.com/alecthomas/kingpin v1.3.8-0.20210301060133-17f40c25f497
272275

273-
// Pin kuberesolver/v5 to support new grpc version. Need to upgrade kuberesolver version on weaveworks/common.
274-
replace github.com/sercand/kuberesolver/v4 => github.com/sercand/kuberesolver/v5 v5.1.1
275-
276276
// gRPC 1.66 introduced memory pooling which breaks Cortex queries. Pin 1.65.0 until we have a fix.
277277
replace google.golang.org/grpc => google.golang.org/grpc v1.65.0

go.sum

+2-45
Large diffs are not rendered by default.

pkg/tracing/tracing.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88

99
"github.com/go-kit/log/level"
1010
"github.com/pkg/errors"
11-
"github.com/sercand/kuberesolver/v4"
11+
"github.com/sercand/kuberesolver/v5"
1212
"github.com/weaveworks/common/tracing"
1313
"go.opentelemetry.io/contrib/propagators/aws/xray"
1414
"google.golang.org/grpc/credentials"

vendor/github.com/weaveworks/common/COPYING.LGPL-3

-175
This file was deleted.

vendor/github.com/weaveworks/common/httpgrpc/server/server.go

+9-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/weaveworks/common/logging/format.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/weaveworks/common/logging/gokit.go

+8-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/weaveworks/common/logging/level.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/weaveworks/common/middleware/response.go

+15-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)