Skip to content

Commit

Permalink
Recommend using the latest schema version (v11) (#1608)
Browse files Browse the repository at this point in the history
  • Loading branch information
PabloCastellano authored Jan 31, 2020
1 parent 34b3a76 commit 94dd756
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion cmd/loki/loki-local-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ schema_config:
- from: 2018-04-15
store: boltdb
object_store: filesystem
schema: v9
schema: v11
index:
prefix: index_
period: 168h
Expand Down
8 changes: 4 additions & 4 deletions docs/configuration/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ schema_config:
- from: 2018-04-15
store: boltdb
object_store: filesystem
schema: v9
schema: v11
index:
prefix: index_
period: 168h
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/operations/storage/retention.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions docs/operations/storage/table-manager.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion production/ksonnet/loki/config.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 94dd756

Please sign in to comment.