Skip to content

Commit a231595

Browse files
committed
Merge branch 'master' into merge-release-1.10-to-master
Signed-off-by: Bryan Boreham <[email protected]>
2 parents 3b9f1c3 + 485474c commit a231595

File tree

494 files changed

+25705
-21906
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

494 files changed

+25705
-21906
lines changed

.github/workflows/test-build-deploy.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
lint:
1111
runs-on: ubuntu-20.04
1212
container:
13-
image: quay.io/cortexproject/build-image:build-image-multiarch-1d2497ff6
13+
image: quay.io/cortexproject/build-image:20210713_update-go-1.16.6-178ab0c4f
1414
steps:
1515
- name: Checkout Repo
1616
uses: actions/checkout@v2
@@ -34,7 +34,7 @@ jobs:
3434
test:
3535
runs-on: ubuntu-20.04
3636
container:
37-
image: quay.io/cortexproject/build-image:build-image-multiarch-1d2497ff6
37+
image: quay.io/cortexproject/build-image:20210713_update-go-1.16.6-178ab0c4f
3838
services:
3939
cassandra:
4040
image: cassandra:3.11
@@ -55,7 +55,7 @@ jobs:
5555
build:
5656
runs-on: ubuntu-20.04
5757
container:
58-
image: quay.io/cortexproject/build-image:build-image-multiarch-1d2497ff6
58+
image: quay.io/cortexproject/build-image:20210713_update-go-1.16.6-178ab0c4f
5959
steps:
6060
- name: Checkout Repo
6161
uses: actions/checkout@v2
@@ -98,8 +98,8 @@ jobs:
9898
- name: Upgrade golang
9999
run: |
100100
cd /tmp
101-
wget https://dl.google.com/go/go1.16.3.linux-amd64.tar.gz
102-
tar -zxvf go1.16.3.linux-amd64.tar.gz
101+
wget https://dl.google.com/go/go1.16.6.linux-amd64.tar.gz
102+
tar -zxvf go1.16.6.linux-amd64.tar.gz
103103
sudo rm -fr /usr/local/go
104104
sudo mv /tmp/go /usr/local/go
105105
cd -
@@ -174,14 +174,14 @@ jobs:
174174
run: |
175175
touch build-image/.uptodate
176176
MIGRATIONS_DIR=$(pwd)/cmd/cortex/migrations
177-
make BUILD_IMAGE=quay.io/cortexproject/build-image:build-image-multiarch-1d2497ff6 TTY='' configs-integration-test
177+
make BUILD_IMAGE=quay.io/cortexproject/build-image:20210713_update-go-1.16.6-178ab0c4f TTY='' configs-integration-test
178178
179179
deploy_website:
180180
needs: [build, test]
181181
if: (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')) && github.repository == 'cortexproject/cortex'
182182
runs-on: ubuntu-20.04
183183
container:
184-
image: quay.io/cortexproject/build-image:build-image-multiarch-1d2497ff6
184+
image: quay.io/cortexproject/build-image:20210713_update-go-1.16.6-178ab0c4f
185185
steps:
186186
- name: Checkout Repo
187187
uses: actions/checkout@v2
@@ -218,7 +218,7 @@ jobs:
218218
if: (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')) && github.repository == 'cortexproject/cortex'
219219
runs-on: ubuntu-20.04
220220
container:
221-
image: quay.io/cortexproject/build-image:build-image-multiarch-1d2497ff6
221+
image: quay.io/cortexproject/build-image:20210713_update-go-1.16.6-178ab0c4f
222222
steps:
223223
- name: Checkout Repo
224224
uses: actions/checkout@v2

CHANGELOG.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,43 @@
22

33
## master / unreleased
44

5+
* [CHANGE] Memberlist: Expose default configuration values to the command line options. Note that setting these explicitly to zero will no longer cause the default to be used. If the default is desired, then do set the option. The following are affected: #4276
6+
- `-memberlist.stream-timeout`
7+
- `-memberlist.retransmit-factor`
8+
- `-memberlist.pull-push-interval`
9+
- `-memberlist.gossip-interval`
10+
- `-memberlist.gossip-nodes`
11+
- `-memberlist.gossip-to-dead-nodes-time`
12+
- `-memberlist.dead-node-reclaim-time`
13+
* [FEATURE] Ruler: Add new `-ruler.query-stats-enabled` which when enabled will report the `cortex_ruler_query_seconds_total` as a per-user metric that tracks the sum of the wall time of executing queries in the ruler in seconds. #4317
14+
* [FEATURE] Query Frontend: Add `cortex_query_fetched_series_total` and `cortex_query_fetched_chunks_bytes_total` per-user counters to expose the number of series and bytes fetched as part of queries. These metrics can be enabled with the `-frontend.query-stats-enabled` flag (or its respective YAML config option `query_stats_enabled`). #4343
15+
* [CHANGE] Update Go version to 1.16.6. #4362
16+
* [CHANGE] Querier / ruler: Change `-querier.max-fetched-chunks-per-query` configuration to limit to maximum number of chunks that can be fetched in a single query. The number of chunks fetched by ingesters AND long-term storare combined should not exceed the value configured on `-querier.max-fetched-chunks-per-query`. #4260
17+
* [CHANGE] Memberlist: the `memberlist_kv_store_value_bytes` has been removed due to values no longer being stored in-memory as encoded bytes. #4345
18+
* [CHANGE] Prevent path traversal attack from users able to control the HTTP header `X-Scope-OrgID`. #4375 (CVE-2021-36157)
19+
* Users only have control of the HTTP header when Cortex is not frontend by an auth proxy validating the tenant IDs
20+
* [ENHANCEMENT] Add timeout for waiting on compactor to become ACTIVE in the ring. #4262
21+
* [ENHANCEMENT] Reduce memory used by streaming queries, particularly in ruler. #4341
22+
* [ENHANCEMENT] Ring: allow experimental configuration of disabling of heartbeat timeouts by setting the relevant configuration value to zero. Applies to the following: #4342
23+
* `-distributor.ring.heartbeat-timeout`
24+
* `-ring.heartbeat-timeout`
25+
* `-ruler.ring.heartbeat-timeout`
26+
* `-alertmanager.sharding-ring.heartbeat-timeout`
27+
* `-compactor.ring.heartbeat-timeout`
28+
* `-store-gateway.sharding-ring.heartbeat-timeout`
29+
* [ENHANCEMENT] Ring: allow heartbeats to be explicitly disabled by setting the interval to zero. This is considered experimental. This applies to the following configuration options: #4344
30+
* `-distributor.ring.heartbeat-period`
31+
* `-ingester.heartbeat-period`
32+
* `-ruler.ring.heartbeat-period`
33+
* `-alertmanager.sharding-ring.heartbeat-period`
34+
* `-compactor.ring.heartbeat-period`
35+
* `-store-gateway.sharding-ring.heartbeat-period`
36+
* [ENHANCEMENT] Memberlist: optimized receive path for processing ring state updates, to help reduce CPU utilization in large clusters. #4345
37+
* [ENHANCEMENT] Memberlist: expose configuration of memberlist packet compression via `-memberlist.compression=enabled`. #4346
38+
* [BUGFIX] HA Tracker: when cleaning up obsolete elected replicas from KV store, tracker didn't update number of cluster per user correctly. #4336
39+
* [BUGFIX] Ruler: fixed counting of PromQL evaluation errors as user-errors when updating `cortex_ruler_queries_failed_total`. #4335
40+
41+
542
## 1.10.0 / 2021-08-03
643

744
* [CHANGE] Prevent path traversal attack from users able to control the HTTP header `X-Scope-OrgID`. #4375 (CVE-2021-36157)

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ build-image/$(UPTODATE): build-image/*
119119
SUDO := $(shell docker info >/dev/null 2>&1 || echo "sudo -E")
120120
BUILD_IN_CONTAINER := true
121121
BUILD_IMAGE ?= $(IMAGE_PREFIX)build-image
122-
LATEST_BUILD_IMAGE_TAG ?= build-image-multiarch-1d2497ff6
122+
LATEST_BUILD_IMAGE_TAG ?= 20210713_update-go-1.16.6-178ab0c4f
123123

124124
# TTY is parameterized to allow Google Cloud Builder to run builds,
125125
# as it currently disallows TTY devices. This value needs to be overridden

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.10.0
1+
1.10.0

build-image/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.16.3-buster
1+
FROM golang:1.16.6-buster
22
ARG goproxyValue
33
ENV GOPROXY=${goproxyValue}
44
RUN apt-get update && apt-get install -y curl python-requests python-yaml file jq unzip protobuf-compiler libprotobuf-dev && \

cmd/query-tee/main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66

77
"github.com/go-kit/kit/log/level"
88
"github.com/prometheus/client_golang/prometheus"
9+
"github.com/prometheus/client_golang/prometheus/collectors"
910
"github.com/weaveworks/common/logging"
1011
"github.com/weaveworks/common/server"
1112

@@ -35,7 +36,7 @@ func main() {
3536

3637
// Run the instrumentation server.
3738
registry := prometheus.NewRegistry()
38-
registry.MustRegister(prometheus.NewGoCollector())
39+
registry.MustRegister(collectors.NewGoCollector())
3940

4041
i := querytee.NewInstrumentationServer(cfg.ServerMetricsPort, registry)
4142
if err := i.Start(); err != nil {

docs/_index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ should read:
3636
1. [Getting started with Cortex](getting-started/_index.md)
3737
1. [Information regarding configuring Cortex](configuration/_index.md)
3838

39+
There are also individual [guides](guides/_index.md) to many tasks.
40+
Please review the important [security advice](guides/security.md) before deploying.
41+
3942
For a guide to contributing to Cortex, see the [contributor guidelines](contributing/).
4043

4144
## Further reading

docs/architecture.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ Cortex supports two hashing strategies:
117117
1. Hash the metric name and tenant ID (default)
118118
2. Hash the metric name, labels and tenant ID (enabled with `-distributor.shard-by-all-labels=true`)
119119

120-
The trade-off associated with the latter is that writes are more balanced across ingesters but each query needs to talk to any ingester since a metric could be spread across multiple ingesters given different label sets.
120+
The trade-off associated with the latter is that writes are more balanced across ingesters but each query needs to talk to all ingesters since a metric could be spread across multiple ingesters given different label sets.
121121

122122
#### The hash ring
123123

docs/blocks-storage/compactor.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,12 +209,12 @@ compactor:
209209
# CLI flag: -compactor.ring.multi.mirror-timeout
210210
[mirror_timeout: <duration> | default = 2s]
211211

212-
# Period at which to heartbeat to the ring.
212+
# Period at which to heartbeat to the ring. 0 = disabled.
213213
# CLI flag: -compactor.ring.heartbeat-period
214214
[heartbeat_period: <duration> | default = 5s]
215215

216216
# The heartbeat timeout after which compactors are considered unhealthy
217-
# within the ring.
217+
# within the ring. 0 = never (timeout disabled).
218218
# CLI flag: -compactor.ring.heartbeat-timeout
219219
[heartbeat_timeout: <duration> | default = 1m]
220220

@@ -230,4 +230,8 @@ compactor:
230230
# Name of network interface to read address from.
231231
# CLI flag: -compactor.ring.instance-interface-names
232232
[instance_interface_names: <list of string> | default = [eth0 en0]]
233+
234+
# Timeout for waiting on compactor to become ACTIVE in the ring.
235+
# CLI flag: -compactor.ring.wait-active-instance-timeout
236+
[wait_active_instance_timeout: <duration> | default = 10m]
233237
```

docs/blocks-storage/store-gateway.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,13 +232,13 @@ store_gateway:
232232
# CLI flag: -store-gateway.sharding-ring.multi.mirror-timeout
233233
[mirror_timeout: <duration> | default = 2s]
234234

235-
# Period at which to heartbeat to the ring.
235+
# Period at which to heartbeat to the ring. 0 = disabled.
236236
# CLI flag: -store-gateway.sharding-ring.heartbeat-period
237237
[heartbeat_period: <duration> | default = 15s]
238238

239239
# The heartbeat timeout after which store gateways are considered unhealthy
240-
# within the ring. This option needs be set both on the store-gateway and
241-
# querier when running in microservices mode.
240+
# within the ring. 0 = never (timeout disabled). This option needs be set
241+
# both on the store-gateway and querier when running in microservices mode.
242242
# CLI flag: -store-gateway.sharding-ring.heartbeat-timeout
243243
[heartbeat_timeout: <duration> | default = 1m]
244244

0 commit comments

Comments
 (0)