Skip to content

Commit 1253e8c

Browse files
authored
Update configuration.md
1 parent 5a62dd5 commit 1253e8c

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

content/develop/data-types/timeseries/configuration.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,21 @@ When using the `CONFIG` command, you must use the new names.
7676

7777
### CHUNK_SIZE_BYTES / ts-chunk-size-bytes
7878

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.
8281

8382
Type: integer
8483

8584
Valid range: `[48 .. 1048576]`; must be a multiple of 8
8685

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+
8894
#### Example
8995

9096
Setting the default chunk size to 1024 bytes
@@ -109,8 +115,6 @@ Type: string
109115

110116
Default: No compaction rules.
111117

112-
**Discussion**
113-
114118
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.
115119

116120
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.
215219

216220
Type: string
217221

218-
**Precedence order**
222+
#### Precedence order
219223

220224
Since the duplication policy can be provided at different levels, the actual precedence of the used policy will be:
221225

0 commit comments

Comments
 (0)