From 94dd7565c3dc2c283f0fc2b9248059b8079f4217 Mon Sep 17 00:00:00 2001 From: Pablo Castellano Date: Fri, 31 Jan 2020 20:41:38 +0100 Subject: [PATCH] Recommend using the latest schema version (v11) (#1608) --- cmd/loki/loki-local-config.yaml | 2 +- docs/configuration/examples.md | 8 ++++---- docs/operations/storage/retention.md | 2 +- docs/operations/storage/table-manager.md | 10 +++++----- production/ksonnet/loki/config.libsonnet | 2 +- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/cmd/loki/loki-local-config.yaml b/cmd/loki/loki-local-config.yaml index 21b2ca254e5e..424e4ad82e21 100644 --- a/cmd/loki/loki-local-config.yaml +++ b/cmd/loki/loki-local-config.yaml @@ -20,7 +20,7 @@ schema_config: - from: 2018-04-15 store: boltdb object_store: filesystem - schema: v9 + schema: v11 index: prefix: index_ period: 168h diff --git a/docs/configuration/examples.md b/docs/configuration/examples.md index 7da0e851d034..7084c1fe45e7 100644 --- a/docs/configuration/examples.md +++ b/docs/configuration/examples.md @@ -30,7 +30,7 @@ schema_config: - from: 2018-04-15 store: boltdb object_store: filesystem - schema: v9 + schema: v11 index: prefix: index_ period: 168h @@ -76,7 +76,7 @@ schema_config: - from: 2018-04-15 store: bigtable object_store: gcs - schema: v9 + schema: v11 index: prefix: loki_index_ period: 168h @@ -100,7 +100,7 @@ schema_config: - from: 2018-04-15 store: cassandra object_store: filesystem - schema: v9 + schema: v11 index: prefix: cassandra_table period: 168h @@ -128,7 +128,7 @@ schema_config: - from: 2018-04-15 store: aws object_store: s3 - schema: v9 + schema: v11 index: prefix: dynamodb_table_name period: 0 diff --git a/docs/operations/storage/retention.md b/docs/operations/storage/retention.md index c84b463ab878..95d691896f88 100644 --- a/docs/operations/storage/retention.md +++ b/docs/operations/storage/retention.md @@ -49,7 +49,7 @@ schema_config: - from: 2018-04-15 store: bigtable object_store: gcs - schema: v9 + schema: v11 index: prefix: loki_index_ period: 168h diff --git a/docs/operations/storage/table-manager.md b/docs/operations/storage/table-manager.md index 0202731d4c62..a77460fbb6e8 100644 --- a/docs/operations/storage/table-manager.md +++ b/docs/operations/storage/table-manager.md @@ -66,11 +66,11 @@ for the query time range. ### Schema config example For example, the following `schema_config` defines two configurations: the first -one using the schema `v8` and the current one using the `v9`. +one using the schema `v10` and the current one using the `v11`. The first config stores data between `2019-01-01` and `2019-04-14` (included), -then a new config has been added - to upgrade the schema version to `v9` - -storing data using the `v9` schema from `2019-04-15` on. +then a new config has been added - to upgrade the schema version to `v11` - +storing data using the `v11` schema from `2019-04-15` on. For each config, multiple tables are created, each one storing data for `period` time (168 hours = 7 days). @@ -80,13 +80,13 @@ schema_config: configs: - from: 2019-01-01 store: dynamo - schema: v8 + schema: v10 index: prefix: loki_ period: 168h - from: 2019-04-15 store: dynamo - schema: v9 + schema: v11 index: prefix: loki_ period: 168h diff --git a/production/ksonnet/loki/config.libsonnet b/production/ksonnet/loki/config.libsonnet index 7c362f50653d..c6c8dafc5492 100644 --- a/production/ksonnet/loki/config.libsonnet +++ b/production/ksonnet/loki/config.libsonnet @@ -237,7 +237,7 @@ from: '2018-04-15', store: 'bigtable', object_store: 'gcs', - schema: 'v9', + schema: 'v11', index: { prefix: '%s_index_' % $._config.table_prefix, period: '%dh' % $._config.index_period_hours,