Skip to content

Commit 98b1df2

Browse files
MichaHoffmannfpetkovski
authored andcommitted
Cut release candidate 0.36.0 rc.1 (thanos-io#7510)
* *: fix server grpc histograms (thanos-io#7493) Signed-off-by: Michael Hoffmann <[email protected]> * Close endpoints after the gRPC server has terminated (thanos-io#7509) Endpoints are currently closed as soon as we receive a SIGTERM or SIGINT. This causes in-flight queries to get cancelled since outgoing connections get closed instantly. This commit moves the endpoints.Close call after the grpc server shutdown to make sure connections are available as long as the server is running. Signed-off-by: Filip Petkovski <[email protected]> * Cut release candidate v0.36.0-rc.1 Signed-off-by: Michael Hoffmann <[email protected]> --------- Signed-off-by: Michael Hoffmann <[email protected]> Signed-off-by: Filip Petkovski <[email protected]> Co-authored-by: Filip Petkovski <[email protected]>
1 parent a6eb1ea commit 98b1df2

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.36.0-rc.0
1+
0.36.0-rc.1

cmd/thanos/query.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -851,6 +851,7 @@ func runQuery(
851851
}, func(error) {
852852
statusProber.NotReady(err)
853853
s.Shutdown(err)
854+
endpoints.Close()
854855
})
855856
}
856857

@@ -949,7 +950,6 @@ func prepareEndpointSet(
949950
})
950951
}, func(error) {
951952
cancel()
952-
endpointSet.Close()
953953
})
954954
}
955955

pkg/server/grpc/grpc.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ func New(logger log.Logger, reg prometheus.Registerer, tracer opentracing.Tracer
5959

6060
met := grpc_prometheus.NewServerMetrics(
6161
grpc_prometheus.WithServerHandlingTimeHistogram(
62-
grpc_prometheus.WithHistogramBuckets([]float64{0.001, 0.01, 0.1, 0.3, 0.6, 1, 3, 6, 9, 20, 30, 60, 90, 120}),
6362
grpc_prometheus.WithHistogramOpts(&prometheus.HistogramOpts{
64-
NativeHistogramBucketFactor: 1.1,
63+
Buckets: []float64{0.001, 0.01, 0.1, 0.3, 0.6, 1, 3, 6, 9, 20, 30, 60, 90, 120},
6564
NativeHistogramMaxBucketNumber: 256,
65+
NativeHistogramBucketFactor: 1.1,
6666
}),
6767
),
6868
)

0 commit comments

Comments
 (0)