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
Remove remaining support for denormalised tokens in the ring. (#2034)
* Removed all support for denormalised tokens in the ring.
Signed-off-by: Peter Štibraný <[email protected]>
* Added CHANGELOG.md entry.
Signed-off-by: Peter Štibraný <[email protected]>
* Updated CHANGELOG.md entry.
Signed-off-by: Peter Štibraný <[email protected]>
* Updated CHANGELOG.md entry.
Signed-off-by: Peter Štibraný <[email protected]>
* Updated documentation.
Signed-off-by: Peter Štibraný <[email protected]>
* Updated documentation.
Signed-off-by: Peter Štibraný <[email protected]>
* Don't reserve field. We don't expect to mix very old and very new Cortex.
Signed-off-by: Peter Štibraný <[email protected]>
* Removed normalized comment. Check for duplicates without building map.
Signed-off-by: Peter Štibraný <[email protected]>
* Removed reserved fields and comment.
We don't expect to run a mix of old (with old fields) and new
(with new field with the same number) Cortex versions in practice.
Signed-off-by: Peter Štibraný <[email protected]>
* Put back reserved fields.
Signed-off-by: Peter Štibraný <[email protected]>
* Fixed text.
Signed-off-by: Peter Štibraný <[email protected]>
* Renamed migrateRing to getTokens.
Signed-off-by: Peter Štibraný <[email protected]>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,7 @@ instructions below to upgrade your Postgres.
24
24
*[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
25
25
*[CHANGE] Cortex now rejects data with duplicate labels. Previously, such data was accepted, with duplicate labels removed with only one value left. #1964
26
26
*[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
27
+
*[CHANGE] Removed remaining support for using denormalised tokens in the ring. If you're still running ingesters with denormalised tokens (Cortex 0.4 or earlier, with `-ingester.normalise-tokens=false`), such ingesters will now be completely invisible to distributors and need to be either switched to Cortex 0.6.0 or later, or be configured to use normalised tokens. #2034
27
28
*[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
28
29
*[FEATURE] Added flag `debug.mutex-profile-fraction` to enable mutex profiling #1969
Copy file name to clipboardExpand all lines: docs/configuration/arguments.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -273,9 +273,9 @@ It also talks to a KVStore and has it's own copies of the same flags used by the
273
273
274
274
Deprecated. New ingesters always write "normalised" tokens to the ring. Normalised tokens consume less memory to encode and decode; as the ring is unmarshalled regularly, this significantly reduces memory usage of anything that watches the ring.
275
275
276
-
Cortex 0.4.0 is the last version that can *write* denormalised tokens. Cortex 0.5.0 and later will always *write* normalised tokens, although it can still *read* denormalised tokens written by older ingesters.
276
+
Cortex 0.4.0 is the last version that can *write* denormalised tokens. Cortex 0.5.0 and above always write normalised tokens.
277
277
278
-
It's perfectly OK to have a mix of ingesters running denormalised (<= 0.4.0) and normalised tokens (either by using `-ingester.normalise-tokens` in Cortex <= 0.4.0, or Cortex 0.5.0+) during upgrades.
278
+
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.
0 commit comments