You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Improve decompression within ParseProtoReader. (#3682)
* Improve decompression within ParseProtoReader.
This uses the last weaveworks, which include a fix for the content-type size to be set correctly which allows to allocate buffers correctly instead of let it grow naturally.
I've also implemented an alternative decompression from a `bytes.Buffer` which avoids allocating and reading a new buffer when using httpgrpc since the underlaying reader is already a `bytes.Buffer`.
I took the liberty to also improve the validation when using RawSnappy, I'm checking the length using the snappy header. This will avoid wasting CPU when the decompressed size is too big since we will know in advance.
I've added also missing tests that covers the old and new code.
Signed-off-by: Cyril Tovena <[email protected]>
* missing go.sum update.
Signed-off-by: Cyril Tovena <[email protected]>
* Update changelog.
Signed-off-by: Cyril Tovena <[email protected]>
* Removes FramedSnappy encoding support.
Signed-off-by: Cyril Tovena <[email protected]>
* update go.mod
Signed-off-by: Cyril Tovena <[email protected]>
* Simplify implementation.
From Review feedback from @pracucci
Signed-off-by: Cyril Tovena <[email protected]>
* Nits & limitReader in both cases when reading from a buffer.
Signed-off-by: Cyril Tovena <[email protected]>
* Moves comment.
Signed-off-by: Cyril Tovena <[email protected]>
Co-authored-by: Marco Pracucci <[email protected]>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,7 @@
2
2
3
3
## master / unreleased
4
4
5
+
*[CHANGE] FramedSnappy encoding support has been removed from Push and Remote Read APIs. This means Prometheus 1.6 support has been removed and the oldest Prometheus version supported in the remote write is 1.7. #3682
5
6
*[CHANGE] Ruler: removed the flag `-ruler.evaluation-delay-duration-deprecated` which was deprecated in 1.4.0. Please use the `ruler_evaluation_delay_duration` per-tenant limit instead. #3693
6
7
*[CHANGE] Removed the flags `-<prefix>.grpc-use-gzip-compression` which were deprecated in 1.3.0: #3693
7
8
*`-query-scheduler.grpc-client-config.grpc-use-gzip-compression`: use `-query-scheduler.grpc-client-config.grpc-compression` instead
@@ -23,6 +24,7 @@
23
24
*`-cluster.peer-timeout` in favor of `-alertmanager.cluster.peer-timeout`
24
25
*[CHANGE] Blocks storage: the default value of `-blocks-storage.bucket-store.sync-interval` has been changed from `5m` to `15m`. #3724
25
26
*[FEATURE] Querier: Queries can be federated across multiple tenants. The tenants IDs involved need to be specified separated by a `|` character in the `X-Scope-OrgID` request header. This is an experimental feature, which can be enabled by setting `-tenant-federation.enabled=true` on all Cortex services. #3250
27
+
*[ENHANCEMENT] Allow specifying JAEGER_ENDPOINT instead of sampling server or local agent port. #3682
26
28
*[FEATURE] Alertmanager: introduced the experimental option `-alertmanager.sharding-enabled` to shard tenants across multiple Alertmanager instances. This feature is still under heavy development and its usage is discouraged. The following new metrics are exported by the Alertmanager: #3664
0 commit comments