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
Copy file name to clipboardExpand all lines: content/develop/data-types/timeseries/configuration.md
+34-7Lines changed: 34 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -89,7 +89,7 @@ Since the chunk size can be provided at different levels, the actual precedence
89
89
90
90
1. Key-level policy, as set with [`TS.CREATE`]({{< relref "/commands/ts.create/" >}})'s and [`TS.ALTER`]({{< relref "/commands/ts.alter/" >}})'s `CHUNK_SIZE` optional argument.
91
91
1. The `ts-chunk-size-bytes` configuration parameter.
92
-
1. The default hard-coded chunk size (`4096`)
92
+
1. The hard-coded default: `4096`
93
93
94
94
#### Example
95
95
@@ -221,12 +221,12 @@ Type: string
221
221
222
222
#### Precedence order
223
223
224
-
Since the duplication policy can be provided at different levels, the actual precedence of the used policy will be:
224
+
Since the duplication policy can be provided at different levels, the actual precedence of the used duplication policy will be:
1. Key-level policy, as set with [`TS.CREATE`]({{< relref "/commands/ts.create/" >}})'s and [`TS.ALTER`]({{< relref "/commands/ts.alter/" >}})'s `DUPLICATE_POLICY` optional argument.
228
228
1. The `ts-duplicate-policy` configuration parameter.
229
-
1. The default hard-coded policy (`BLOCK`)
229
+
1. The hard-coded default: `BLOCK`
230
230
231
231
### RETENTION_POLICY / ts-retention-policy
232
232
@@ -238,12 +238,18 @@ Type: integer
238
238
239
239
Valid range: `[0 .. 9,223,372,036,854,775,807]`
240
240
241
-
Default: `0`
242
-
243
241
The value `0` means no expiration.
244
242
245
243
When both `COMPACTION_POLICY` / `ts-compaction-policy` and `RETENTION_POLICY` / `ts-retention-policy` are specified, the retention of newly created compactions is according to the retention time specified in `COMPACTION_POLICY` / `ts-compaction-policy`.
246
244
245
+
#### Precedence order
246
+
247
+
Since the retention can be provided at different levels, the actual precedence of the used retention will be:
248
+
249
+
1. Key-level retention, as set with [`TS.CREATE`]({{< relref "/commands/ts.create/" >}})'s and [`TS.ALTER`]({{< relref "/commands/ts.alter/" >}})'s `RETENTION` optional argument.
250
+
1. The `ts-retention-policy` configuration parameter.
251
+
1. No retention.
252
+
247
253
#### Example
248
254
249
255
Setting the default retention to 300 days
@@ -264,13 +270,34 @@ redis> CONFIG SET ts-retention-policy 25920000000
264
270
265
271
Note: Before v1.6 this configuration parameter was named `CHUNK_TYPE`.
266
272
267
-
Default chunk encoding for automatically created time series keys when [ts-compaction-policy](#ts-compaction-policy) is configured.
273
+
Default chunk encoding for automatically created compactions when [ts-compaction-policy](#ts-compaction-policy) is configured.
268
274
269
275
Type: string
270
276
271
277
Valid values: `COMPRESSED`, `UNCOMPRESSED`
272
278
273
-
Default: `COMPRESSED`
279
+
#### Precedence order
280
+
281
+
Since the encoding can be provided at different levels, the actual precedence of the used encoding will be:
0 commit comments