Skip to content

Commit aaf3564

Browse files
authored
Prepare release 0.7.0 (#2274)
* Updated CHANGELOG Signed-off-by: Marco Pracucci <[email protected]> * Updated latest stable version tag to 0.7.0 Signed-off-by: Marco Pracucci <[email protected]> * Updated CHANGELOG based on feedback Signed-off-by: Marco Pracucci <[email protected]>
1 parent 3cabc2d commit aaf3564

11 files changed

+119
-18
lines changed

CHANGELOG.md

+108-7
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
## master / unreleased
44

55

6-
## 0.7.0-rc.0 / 2020-03-09
6+
## 0.7.0 / 2020-03-16
77

8-
Cortex `0.7.0` introduces some **breaking changes**. You're encouraged to read all the `[CHANGE]` entries below before upgrading your Cortex cluster. In particular:
8+
Cortex `0.7.0` is a major step forward the upcoming `1.0` release. In this release, we've got 164 contributions from 26 authors. Thanks to all contributors! ❤️
99

10-
- Cleaned up some configuration options in preparation for the Cortex `1.0.0` release:
10+
Please be aware that Cortex `0.7.0` introduces some **breaking changes**. You're encouraged to read all the `[CHANGE]` entries below before upgrading your Cortex cluster. In particular:
11+
12+
- Cleaned up some configuration options in preparation for the Cortex `1.0.0` release (see also the [annotated config file breaking changes](#annotated-config-file-breaking-changes) below):
1113
- Removed CLI flags support to configure the schema (see [how to migrate from flags to schema file](https://cortexmetrics.io/docs/configuration/schema-configuration/#migrating-from-flags-to-schema-file))
1214
- Renamed CLI flag `-config-yaml` to `-schema-config-file`
1315
- Removed CLI flag `-store.min-chunk-age` in favor of `-querier.query-store-after`. The corresponding YAML config option `ingestermaxquerylookback` has been renamed to [`query_ingesters_within`](https://cortexmetrics.io/docs/configuration/configuration-file/#querier-config)
@@ -27,7 +29,7 @@ Cortex `0.7.0` introduces some **breaking changes**. You're encouraged to read a
2729
### Full changelog
2830

2931
* [CHANGE] Removed support for flags to configure schema. Further, the flag for specifying the config file (`-config-yaml`) has been deprecated. Please use `-schema-config-file`. See the [Schema Configuration documentation](https://cortexmetrics.io/docs/configuration/schema-configuration/) for more details on how to configure the schema using the YAML file. #2221
30-
* [CHANGE] Config file changed to remove top level `config_store` field in favor of a nested `configdb` field. #2125
32+
* [CHANGE] In the config file, the root level `config_store` config option has been moved to `alertmanager` > `store` > `configdb`. #2125
3133
* [CHANGE] Removed unnecessary `frontend.cache-split-interval` in favor of `querier.split-queries-by-interval` both to reduce configuration complexity and guarantee alignment of these two configs. Starting from now, `-querier.cache-results` may only be enabled in conjunction with `-querier.split-queries-by-interval` (previously the cache interval default was `24h` so if you want to preserve the same behaviour you should set `-querier.split-queries-by-interval=24h`). #2040
3234
* [CHANGE] Renamed Configs configuration options. #2187
3335
* configuration options
@@ -102,6 +104,7 @@ Cortex `0.7.0` introduces some **breaking changes**. You're encouraged to read a
102104
* [ENHANCEMENT] Add automatic repair for checkpoint and WAL. #2105
103105
* [ENHANCEMENT] Support `lastEvaluation` and `evaluationTime` in `/api/v1/rules` endpoints and make order of groups stable. #2196
104106
* [ENHANCEMENT] Skip expired requests in query-frontend scheduling. #2082
107+
* [ENHANCEMENT] Add ability to configure gRPC keepalive settings. #2066
105108
* [ENHANCEMENT] Experimental TSDB: Export TSDB Syncer metrics from Compactor component, they are prefixed with `cortex_compactor_`. #2023
106109
* [ENHANCEMENT] Experimental TSDB: Added dedicated flag `-experimental.tsdb.bucket-store.tenant-sync-concurrency` to configure the maximum number of concurrent tenants for which blocks are synched. #2026
107110
* [ENHANCEMENT] Experimental TSDB: Expose metrics for objstore operations (prefixed with `cortex_<component>_thanos_objstore_`, component being one of `ingester`, `querier` and `compactor`). #2027
@@ -115,6 +118,7 @@ Cortex `0.7.0` introduces some **breaking changes**. You're encouraged to read a
115118
* [BUGFIX] Restored histogram `cortex_configs_request_duration_seconds` #2138
116119
* [BUGFIX] Fix wrong syntax for `url` in config-file-reference. #2148
117120
* [BUGFIX] Fixed some 5xx status code returned by the query-frontend when they should actually be 4xx. #2122
121+
* [BUGFIX] Fixed leaked goroutines in the querier. #2070
118122
* [BUGFIX] Experimental TSDB: fixed `/all_user_stats` and `/api/prom/user_stats` endpoints when using the experimental TSDB blocks storage. #2042
119123
* [BUGFIX] Experimental TSDB: fixed ruler to correctly work with the experimental TSDB blocks storage. #2101
120124

@@ -124,6 +128,106 @@ Cortex 0.4.0 is the last version that can *write* denormalised tokens. Cortex 0.
124128

125129
Cortex 0.6.0 is the last version that can *read* denormalised tokens. Starting with Cortex 0.7.0 only normalised tokens are supported, and ingesters writing denormalised tokens to the ring (running Cortex 0.4.0 or earlier with `-ingester.normalise-tokens=false`) are ignored by distributors. Such ingesters should either switch to using normalised tokens, or be upgraded to Cortex 0.5.0 or later.
126130

131+
### Known issues
132+
133+
- The gRPC streaming for ingesters doesn't work when using the experimental TSDB blocks storage. Please do not enable `-querier.ingester-streaming` if you're using the TSDB blocks storage. If you want to enable it, you can build Cortex from `master` given the issue has been fixed after Cortex `0.7` branch has been cut and the fix wasn't included in the `0.7` because related to an experimental feature.
134+
135+
### Annotated config file breaking changes
136+
137+
In this section you can find a config file diff showing the breaking changes introduced in Cortex `0.7`. You can also find the [full configuration file reference doc](https://cortexmetrics.io/docs/configuration/configuration-file/) in the website.
138+
139+
```diff
140+
### Root level config
141+
142+
# "configdb" has been moved to "alertmanager > store > configdb".
143+
-[configdb: <configdb_config>]
144+
145+
# "config_store" has been renamed to "configs".
146+
-[config_store: <configstore_config>]
147+
+[configs: <configs_config>]
148+
149+
150+
### `distributor_config`
151+
152+
# The support to hook an external billing system has been removed.
153+
-[enable_billing: <boolean> | default = false]
154+
-billing:
155+
- [maxbufferedevents: <int> | default = 1024]
156+
- [retrydelay: <duration> | default = 500ms]
157+
- [ingesterhostport: <string> | default = "localhost:24225"]
158+
159+
160+
### `querier_config`
161+
162+
# "ingestermaxquerylookback" has been renamed to "query_ingesters_within".
163+
-[ingestermaxquerylookback: <duration> | default = 0s]
164+
+[query_ingesters_within: <duration> | default = 0s]
165+
166+
167+
### `queryrange_config`
168+
169+
results_cache:
170+
cache:
171+
# "defaul_validity" has been renamed to "default_validity".
172+
- [defaul_validity: <duration> | default = 0s]
173+
+ [default_validity: <duration> | default = 0s]
174+
175+
# "cache_split_interval" has been deprecated in favor of "split_queries_by_interval".
176+
- [cache_split_interval: <duration> | default = 24h0m0s]
177+
178+
179+
### `alertmanager_config`
180+
181+
# The "store" config block has been added. This includes "configdb" which previously
182+
# was the "configdb" root level config block.
183+
+store:
184+
+ [type: <string> | default = "configdb"]
185+
+ [configdb: <configstore_config>]
186+
+ local:
187+
+ [path: <string> | default = ""]
188+
189+
190+
### `storage_config`
191+
192+
index_queries_cache_config:
193+
# "defaul_validity" has been renamed to "default_validity".
194+
- [defaul_validity: <duration> | default = 0s]
195+
+ [default_validity: <duration> | default = 0s]
196+
197+
198+
### `chunk_store_config`
199+
200+
chunk_cache_config:
201+
# "defaul_validity" has been renamed to "default_validity".
202+
- [defaul_validity: <duration> | default = 0s]
203+
+ [default_validity: <duration> | default = 0s]
204+
205+
write_dedupe_cache_config:
206+
# "defaul_validity" has been renamed to "default_validity".
207+
- [defaul_validity: <duration> | default = 0s]
208+
+ [default_validity: <duration> | default = 0s]
209+
210+
# "min_chunk_age" has been removed in favor of "querier > query_store_after".
211+
-[min_chunk_age: <duration> | default = 0s]
212+
213+
214+
### `configs_config`
215+
216+
-# "uri" has been moved to "database > uri".
217+
-[uri: <string> | default = "postgres://[email protected]/configs?sslmode=disable"]
218+
219+
-# "migrationsdir" has been moved to "database > migrations_dir".
220+
-[migrationsdir: <string> | default = ""]
221+
222+
-# "passwordfile" has been moved to "database > password_file".
223+
-[passwordfile: <string> | default = ""]
224+
225+
+database:
226+
+ [uri: <string> | default = "postgres://[email protected]/configs?sslmode=disable"]
227+
+ [migrations_dir: <string> | default = ""]
228+
+ [password_file: <string> | default = ""]
229+
```
230+
127231
## 0.6.1 / 2020-02-05
128232

129233
* [BUGFIX] Fixed parsing of the WAL configuration when specified in the YAML config file. #2071
@@ -165,11 +269,9 @@ Further, if you're using the configs service, we've upgraded the migration libra
165269
* [FEATURE] Added support to store ring tokens to a file and read it back on startup, instead of generating/fetching the tokens to/from the ring. This feature can be enabled with the flag `-ingester.tokens-file-path`. #1750
166270
* [FEATURE] Experimental TSDB: Added `/series` API endpoint support with TSDB blocks storage. #1830
167271
* [FEATURE] Experimental TSDB: Added TSDB blocks `compactor` component, which iterates over users blocks stored in the bucket and compact them according to the configured block ranges. #1942
168-
* [FEATURE] Experimental: Implements gRPC streaming for ingesters when using the experimental TSDB blocks storage. #1845
169272
* [ENHANCEMENT] metric `cortex_ingester_flush_reasons` gets a new `reason` value: `Spread`, when `-ingester.spread-flushes` option is enabled. #1978
170273
* [ENHANCEMENT] Added `password` and `enable_tls` options to redis cache configuration. Enables usage of Microsoft Azure Cache for Redis service. #1923
171274
* [ENHANCEMENT] Upgraded Kubernetes API version for deployments from `extensions/v1beta1` to `apps/v1`. #1941
172-
* [ENHANCEMENT] Add ability to configure gRPC keepalive settings. #2066
173275
* [ENHANCEMENT] Experimental TSDB: Open existing TSDB on startup to prevent ingester from becoming ready before it can accept writes. The max concurrency is set via `--experimental.tsdb.max-tsdb-opening-concurrency-on-startup`. #1917
174276
* [ENHANCEMENT] Experimental TSDB: Querier now exports aggregate metrics from Thanos bucket store and in memory index cache (many metrics to list, but all have `cortex_querier_bucket_store_` or `cortex_querier_blocks_index_cache_` prefix). #1996
175277
* [ENHANCEMENT] Experimental TSDB: Improved multi-tenant bucket store. #1991
@@ -181,7 +283,6 @@ Further, if you're using the configs service, we've upgraded the migration libra
181283
* [BUGFIX] Fixed ingesters getting stuck in a LEAVING state after coming up from an ungraceful exit. #1921
182284
* [BUGFIX] Reduce memory usage when ingester Push() errors. #1922
183285
* [BUGFIX] Table Manager: Fixed calculation of expected tables and creation of tables from next active schema considering grace period. #1976
184-
* [BUGFIX] Fixed leaked goroutines in the querier. #2070
185286
* [BUGFIX] Experimental TSDB: Fixed ingesters consistency during hand-over when using experimental TSDB blocks storage. #1854 #1818
186287
* [BUGFIX] Experimental TSDB: Fixed metrics when using experimental TSDB blocks storage. #1981 #1982 #1990 #1983
187288
* [BUGFIX] Experimental memberlist: Use the advertised address when sending packets to other peers of the Gossip memberlist. #1857

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.7.0-rc.0
1+
0.7.0

docs/guides/cortex-with-cassandra.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,12 @@ storage:
110110
```
111111

112112
The latest tag is not published for the Cortex docker image. Visit quay.io/repository/cortexproject/cortex
113-
to find the latest stable version tag and use it in the command bellow (currently it is `v0.6.1`).
113+
to find the latest stable version tag and use it in the command bellow (currently it is `v0.7.0`).
114114

115115
Run Cortex using the latest stable version:
116116

117117
```
118-
docker run -d --name=cortex -v $(pwd)/single-process-config.yaml:/etc/single-process-config.yaml -p 9009:9009 quay.io/cortexproject/cortex:v0.6.1 -config.file=/etc/single-process-config.yaml
118+
docker run -d --name=cortex -v $(pwd)/single-process-config.yaml:/etc/single-process-config.yaml -p 9009:9009 quay.io/cortexproject/cortex:v0.7.0 -config.file=/etc/single-process-config.yaml
119119
```
120120
In case you prefer to run the master version, please follow this [documentation](https://github.com/cortexproject/cortex/blob/master/docs/getting_started.md) on how to build Cortex from source.
121121

k8s/alertmanager-dep.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ spec:
1515
spec:
1616
containers:
1717
- name: alertmanager
18-
image: quay.io/cortexproject/cortex:v0.6.1
18+
image: quay.io/cortexproject/cortex:v0.7.0
1919
imagePullPolicy: IfNotPresent
2020
args:
2121
- -target=alertmanager

k8s/configs-dep.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ spec:
1515
spec:
1616
containers:
1717
- name: configs
18-
image: quay.io/cortexproject/cortex:v0.6.1
18+
image: quay.io/cortexproject/cortex:v0.7.0
1919
imagePullPolicy: IfNotPresent
2020
args:
2121
- -target=configs

k8s/distributor-dep.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ spec:
1515
spec:
1616
containers:
1717
- name: distributor
18-
image: quay.io/cortexproject/cortex:v0.6.1
18+
image: quay.io/cortexproject/cortex:v0.7.0
1919
imagePullPolicy: IfNotPresent
2020
args:
2121
- -target=distributor

k8s/ingester-dep.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ spec:
3737

3838
containers:
3939
- name: ingester
40-
image: quay.io/cortexproject/cortex:v0.6.1
40+
image: quay.io/cortexproject/cortex:v0.7.0
4141
imagePullPolicy: IfNotPresent
4242
args:
4343
- -target=ingester

k8s/querier-dep.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ spec:
1515
spec:
1616
containers:
1717
- name: querier
18-
image: quay.io/cortexproject/cortex:v0.6.1
18+
image: quay.io/cortexproject/cortex:v0.7.0
1919
imagePullPolicy: IfNotPresent
2020
args:
2121
- -target=querier

k8s/query-frontend-dep.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ spec:
1515
spec:
1616
containers:
1717
- name: query-frontend
18-
image: quay.io/cortexproject/cortex:v0.6.1
18+
image: quay.io/cortexproject/cortex:v0.7.0
1919
imagePullPolicy: IfNotPresent
2020
args:
2121
- -target=query-frontend

k8s/ruler-dep.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ spec:
1515
spec:
1616
containers:
1717
- name: ruler
18-
image: quay.io/cortexproject/cortex:v0.6.1
18+
image: quay.io/cortexproject/cortex:v0.7.0
1919
imagePullPolicy: IfNotPresent
2020
args:
2121
- -target=ruler

k8s/table-manager-dep.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ spec:
1515
spec:
1616
containers:
1717
- name: table-manager
18-
image: quay.io/cortexproject/cortex:v0.6.1
18+
image: quay.io/cortexproject/cortex:v0.7.0
1919
imagePullPolicy: IfNotPresent
2020
args:
2121
- -target=table-manager

0 commit comments

Comments
 (0)