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
+11-7Lines changed: 11 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -76,15 +76,21 @@ When using the `CONFIG` command, you must use the new names.
76
76
77
77
### CHUNK_SIZE_BYTES / ts-chunk-size-bytes
78
78
79
-
Default initial allocation size, in bytes, for the data part of each new chunk.
80
-
This default value is applied to each new time series upon its creation.
81
-
Actual chunks may consume more memory.
79
+
The initial allocation size, in bytes, for the data part of each new chunk. Actual chunks may consume more memory.
80
+
Changing this value does not affect existing chunks.
82
81
83
82
Type: integer
84
83
85
84
Valid range: `[48 .. 1048576]`; must be a multiple of 8
86
85
87
-
Default: `4096`
86
+
#### Precedence order
87
+
88
+
Since the chunk size can be provided at different levels, the actual precedence of the used chunk size will be:
89
+
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
+
1. The `ts-chunk-size-bytes` configuration parameter.
92
+
1. The default hard-coded chunk size (`4096`)
93
+
88
94
#### Example
89
95
90
96
Setting the default chunk size to 1024 bytes
@@ -109,8 +115,6 @@ Type: string
109
115
110
116
Default: No compaction rules.
111
117
112
-
**Discussion**
113
-
114
118
Note that this configuration parameter has no effect on keys created with [`TS.CREATE`]({{< relref "commands/ts.create/" >}}). To understand the motivation for this behavior, consider the following scenario: Suppose a default compaction policy is defined, but then one wants to manually create an additional compaction rule (using [`TS.CREATERULE`]({{< relref "commands/ts.createrule/" >}})) which requires first creating an empty destination key (using [`TS.CREATE`]({{< relref "commands/ts.create/" >}})). But now there is a problem: due to the default compaction policy, automatic compactions would be undesirably created for that destination key.
115
119
116
120
Each rule is separated by a semicolon (`;`), the rule consists of multiple fields that are separated by a colon (`:`):
@@ -215,7 +219,7 @@ The default value is applied to each new time series upon its creation.
215
219
216
220
Type: string
217
221
218
-
**Precedence order**
222
+
#### Precedence order
219
223
220
224
Since the duplication policy can be provided at different levels, the actual precedence of the used policy will be:
0 commit comments