Skip to content

Commit 45b3347

Browse files
committed
Prepared release 0.6.0
Signed-off-by: Marco Pracucci <[email protected]>
1 parent ab3e836 commit 45b3347

File tree

4 files changed

+60
-17
lines changed

4 files changed

+60
-17
lines changed

CHANGELOG.md

Lines changed: 27 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@
22

33
## master / unreleased
44

5+
6+
## 0.6.0 / 2020-01-22
7+
58
Note that the ruler flags need to be changed in this upgrade. You're moving from a single node ruler to something that might need to be sharded.
69
If you are running with a high `-ruler.num-workers` and if you're not able to execute all your rules in `-ruler.evaluation-interval`, then you'll need to shard.
710
Further, if you're using the configs service, we've upgraded the migration library and this requires some manual intervention. See full
8-
instructions below to upgrade your Postgres.
11+
instructions below to upgrade your PostgreSQL.
912

1013
* [CHANGE] Remove unnecessary configs/flags from the ruler ring config to align with the pattern used in the distributor ring. #1987
1114
* Ruler ring related flags are now all prefixed with `ruler.ring.` as opposed to just `ruler.`
@@ -24,16 +27,25 @@ instructions below to upgrade your Postgres.
2427
* [CHANGE] Overrides mechanism has been renamed to "runtime config", and is now separate from limits. Runtime config is simply a file that is reloaded by Cortex every couple of seconds. Limits and now also multi KV use this mechanism.<br />New arguments were introduced: `-runtime-config.file` (defaults to empty) and `-runtime-config.reload-period` (defaults to 10 seconds), which replace previously used `-limits.per-user-override-config` and `-limits.per-user-override-period` options. Old options are still used if `-runtime-config.file` is not specified. This change is also reflected in YAML configuration, where old `limits.per_tenant_override_config` and `limits.per_tenant_override_period` fields are replaced with `runtime_config.file` and `runtime_config.period` respectively. #1749
2528
* [CHANGE] Cortex now rejects data with duplicate labels. Previously, such data was accepted, with duplicate labels removed with only one value left. #1964
2629
* [CHANGE] Changed the default value for `-distributor.ha-tracker.prefix` from `collectors/` to `ha-tracker/` in order to not clash with other keys (ie. ring) stored in the same key-value store. #1940
30+
* [FEATURE] Write-Ahead-Log added in ingesters for more data reliability against ingester crashes. #1103
31+
* `--ingester.wal-enabled`: Setting this to `true` enables writing to WAL during ingestion.
32+
* `--ingester.wal-dir`: Directory where the WAL data should be stored and/or recovered from.
33+
* `--ingester.checkpoint-enabled`: Set this to `true` to enable checkpointing of in-memory chunks to disk.
34+
* `--ingester.checkpoint-duration`: This is the interval at which checkpoints should be created.
35+
* `--ingester.recover-from-wal`: Set this to `true` to recover data from an existing WAL.
36+
* For more information, please checkout the ["Ingesters with WAL" guide](https://cortexmetrics.io/docs/guides/ingesters-with-wal/).
2737
* [FEATURE] The distributor can now drop labels from samples (similar to the removal of the replica label for HA ingestion) per user via the `distributor.drop-label` flag. #1726
2838
* [FEATURE] Added flag `debug.mutex-profile-fraction` to enable mutex profiling #1969
2939
* [FEATURE] Added `global` ingestion rate limiter strategy. Deprecated `-distributor.limiter-reload-period` flag. #1766
3040
* [FEATURE] Added support for Microsoft Azure blob storage to be used for storing chunk data. #1913
3141
* [FEATURE] Added readiness probe endpoint`/ready` to queriers. #1934
32-
* [FEATURE] EXPERIMENTAL: Added `/series` API endpoint support with TSDB blocks storage. #1830
3342
* [FEATURE] Added "multi" KV store that can interact with two other KV stores, primary one for all reads and writes, and secondary one, which only receives writes. Primary/secondary store can be modified in runtime via runtime-config mechanism (previously "overrides"). #1749
34-
* [FEATURE] EXPERIMENTAL: Added TSDB blocks `compactor` component, which iterates over users blocks stored in the bucket and compact them according to the configured block ranges. #1942
43+
* [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` for the ingesters and `-ruler.tokens-file-path` for the ruler. #1750
44+
* [FEATURE] Experimental TSDB: Added `/series` API endpoint support with TSDB blocks storage. #1830
45+
* [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
3546
* [ENHANCEMENT] metric `cortex_ingester_flush_reasons` gets a new `reason` value: `Spread`, when `-ingester.spread-flushes` option is enabled. #1978
3647
* [ENHANCEMENT] Added `password` and `enable_tls` options to redis cache configuration. Enables usage of Microsoft Azure Cache for Redis service. #1923
48+
* [ENHANCEMENT] Upgraded Kubernetes API version for deployments from `extensions/v1beta1` to `apps/v1`. #1941
3749
* [ENHANCEMENT] Experimental TSDB: Open existing TSDB on startup to prevent ingester from becoming ready before it can accept writes. #1917
3850
* `--experimental.tsdb.max-tsdb-opening-concurrency-on-startup`
3951
* [ENHANCEMENT] Experimental TSDB: Added `cortex_ingester_shipper_dir_syncs_total`, `cortex_ingester_shipper_dir_sync_failures_total`, `cortex_ingester_shipper_uploads_total` and `cortex_ingester_shipper_upload_failures_total` metrics from TSDB shipper component. #1983
@@ -45,19 +57,20 @@ instructions below to upgrade your Postgres.
4557
* Track `cortex_querier_blocks_sync_seconds` metric for the initial sync too
4658
* Fixed race condition
4759
* [BUGFIX] Fixed unnecessary CAS operations done by the HA tracker when the jitter is enabled. #1861
48-
* [BUGFIX] Fixed #1904 ingesters getting stuck in a LEAVING state after coming up from an ungraceful exit. #1921
60+
* [BUGFIX] Fixed ingesters getting stuck in a LEAVING state after coming up from an ungraceful exit. #1921
4961
* [BUGFIX] Reduce memory usage when ingester Push() errors. #1922
50-
* [BUGFIX] TSDB: Fixed handling of out of order/bound samples in ingesters with the experimental TSDB blocks storage. #1864
51-
* [BUGFIX] TSDB: Fixed querying ingesters in `LEAVING` state with the experimental TSDB blocks storage. #1854
52-
* [BUGFIX] TSDB: Fixed error handling in the series to chunks conversion with the experimental TSDB blocks storage. #1837
53-
* [BUGFIX] TSDB: Fixed TSDB creation conflict with blocks transfer in a `JOINING` ingester with the experimental TSDB blocks storage. #1818
54-
* [BUGFIX] TSDB: `experimental.tsdb.ship-interval` of <=0 treated as disabled instead of allowing panic. #1975
55-
* [BUGFIX] TSDB: Fixed `cortex_ingester_queried_samples` and `cortex_ingester_queried_series` metrics when using block storage. #1981
56-
* [BUGFIX] TSDB: Fixed `cortex_ingester_memory_series` and `cortex_ingester_memory_users` metrics when using with the experimental TSDB blocks storage. #1982
57-
* [BUGFIX] TSDB: Fixed `cortex_ingester_memory_series_created_total` and `cortex_ingester_memory_series_removed_total` metrics when using TSDB blocks storage. #1990
5862
* [BUGFIX] Table Manager: Fixed calculation of expected tables and creation of tables from next active schema considering grace period. #1976
59-
60-
### Upgrading Postgres (if you're using configs service)
63+
* [BUGFIX] Experimental TSDB: Fixed handling of out of order/bound samples in ingesters with the experimental TSDB blocks storage. #1864
64+
* [BUGFIX] Experimental TSDB: Fixed querying ingesters in `LEAVING` state with the experimental TSDB blocks storage. #1854
65+
* [BUGFIX] Experimental TSDB: Fixed error handling in the series to chunks conversion with the experimental TSDB blocks storage. #1837
66+
* [BUGFIX] Experimental TSDB: Fixed TSDB creation conflict with blocks transfer in a `JOINING` ingester with the experimental TSDB blocks storage. #1818
67+
* [BUGFIX] Experimental TSDB: `experimental.tsdb.ship-interval` of <=0 treated as disabled instead of allowing panic. #1975
68+
* [BUGFIX] Experimental TSDB: Fixed `cortex_ingester_queried_samples` and `cortex_ingester_queried_series` metrics when using block storage. #1981
69+
* [BUGFIX] Experimental TSDB: Fixed `cortex_ingester_memory_series` and `cortex_ingester_memory_users` metrics when using with the experimental TSDB blocks storage. #1982
70+
* [BUGFIX] Experimental TSDB: Fixed `cortex_ingester_memory_series_created_total` and `cortex_ingester_memory_series_removed_total` metrics when using TSDB blocks storage. #1990
71+
* [BUGFIX] Experimental memberlist: Use the advertised address when sending packets to other peers of the Gossip memberlist. #1857
72+
73+
### Upgrading PostgreSQL (if you're using configs service)
6174

6275
Reference: https://github.com/golang-migrate/migrate/tree/master/database/postgres#upgrading-from-v1
6376

RELEASE.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ Our goal is to provide a new minor release every 4 weeks. This is a new process
1212
| v0.2.0 | 2019-08-28 | Goutham Veeramachaneni (Github: @gouthamve) |
1313
| v0.3.0 | 2019-10-09 | Bryan Boreham (@bboreham) |
1414
| v0.4.0 | 2019-11-13 | Tom Wilkie (@tomwilkie) |
15-
| v0.5.0 | 2020-01-08 | _Abandoned_ |
16-
| v0.6.0 | 2020-01-20 | **searching for a volunteer** |
15+
| v0.5.0 | 2020-01-08 | _Abandoned_ |
16+
| v0.6.0 | 2020-01-22 | Marco Pracucci (@pracucci) |
1717

1818
## Release shepherd responsibilities
1919

@@ -59,6 +59,8 @@ Entries in the `CHANGELOG.md` are meant to be in this order:
5959
* `[ENHANCEMENT]`
6060
* `[BUGFIX]`
6161

62+
To quickly look for the list of PR missing a reference in the `CHANGELOG.md` you can run `./tools/release/check-changelog.sh LAST-RELEASE-TAG...master`.
63+
6264
### Draft the new release
6365

6466
Tag the new release with a tag named `v<major>.<minor>.<patch>`, e.g. `v0.1.3`. Note the `v` prefix.

VERSION

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

tools/release/check-changelog.sh

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/bin/bash
2+
3+
# Expect as input parameter the commits range to analyze.
4+
if [ $# -ne 1 ]; then
5+
echo "Usage: $0 COMMIT-RANGE"
6+
exit 1
7+
fi
8+
9+
# Find all merged PRs.
10+
GIT_LOG=$(git log --pretty=format:"%s" $1)
11+
PR_LIST=$(echo "$GIT_LOG" | grep -Eo '#[0-9]+')
12+
PR_LIST_COUNT=$(echo "$PR_LIST" | wc -l | grep -Eo '[0-9]+')
13+
PR_AUTHORS_COUNT=$(git log --pretty=format:"%an" $1 | sort | uniq -i | wc -l | grep -Eo '[0-9]+')
14+
echo "Found ${PR_LIST_COUNT} PRs from ${PR_AUTHORS_COUNT} authors."
15+
echo ""
16+
17+
# For each PR check if it's mentioned in the changelog.
18+
echo "List of missing PR in the CHANGELOG.md:"
19+
for PR in $PR_LIST; do
20+
grep -q "$PR" CHANGELOG.md
21+
if [ $? -eq 0 ]; then
22+
continue
23+
fi
24+
25+
# Print 1 line for the missing PR
26+
echo -n "- ${PR}: "
27+
echo "$GIT_LOG" | grep "$PR"
28+
done

0 commit comments

Comments
 (0)