@@ -19,20 +19,18 @@ Pass configuration options to the `influxdb serve` server using either command
19
19
options or environment variables. Command options take precedence over
20
20
environment variables.
21
21
22
- ##### Example influxdb3 serve command options
22
+ ##### Example ` influxdb3 serve ` command options
23
23
24
24
<!-- pytest.mark.skip-->
25
25
26
26
``` sh
27
27
influxdb3 serve \
28
+ --node-id node0 \
29
+ --cluster-id cluster0 \
28
30
--license-email example@email.com \
29
31
--object-store file \
30
32
--data-dir ~ /.influxdb3 \
31
- --node-id NODE_ID \
32
- --cluster-id my-cluster-01 \
33
33
--log-filter info \
34
- --max-http-request-size 20971520 \
35
- --aws-allow-http
36
34
```
37
35
38
36
##### Example environment variables
@@ -43,10 +41,7 @@ influxdb3 serve \
43
41
export INFLUXDB3_ENTERPRISE_LICENSE_EMAIL=example@email.com
44
42
export INFLUXDB3_OBJECT_STORE=file
45
43
export INFLUXDB3_DB_DIR=~ /.influxdb3
46
- export INFLUXDB3_WRITER_IDENTIFIER_PREFIX=my-host
47
44
export LOG_FILTER=info
48
- export INFLUXDB3_MAX_HTTP_REQUEST_SIZE=20971520
49
- export AWS_ALLOW_HTTP=true
50
45
51
46
influxdb3 serve
52
47
```
@@ -60,8 +55,13 @@ influxdb3 serve
60
55
- [ license-file] ( #license-file )
61
56
- [ mode] ( #mode )
62
57
- [ node-id] ( #node-id )
58
+ - [ node-id-from-env] ( #node-id-from-env )
63
59
- [ object-store] ( #object-store )
64
- - [ query-file-limit] ( #query-file-limit )
60
+ - [ tls-key] ( #tls-key )
61
+ - [ tls-cert] ( #tls-cert )
62
+ - [ tls-minimum-versions] ( #tls-minimum-version )
63
+ - [ without-auth] ( #without-auth )
64
+ - [ disable-authz] ( #disable-authz )
65
65
- [ AWS] ( #aws )
66
66
- [ aws-access-key-id] ( #aws-access-key-id )
67
67
- [ aws-secret-access-key] ( #aws-secret-access-key )
@@ -121,9 +121,6 @@ influxdb3 serve
121
121
- [ wal-snapshot-size] ( #wal-snapshot-size )
122
122
- [ wal-max-write-buffer-size] ( #wal-max-write-buffer-size )
123
123
- [ snapshotted-wal-files-to-keep] ( #snapshotted-wal-files-to-keep )
124
- - [ Replication] ( #replication )
125
- - [ read-from-node-ids] ( #read-from-node-ids )
126
- - [ replication-interval] ( #replication-interval )
127
124
- [ Compaction] ( #compaction )
128
125
- [ compaction-row-limit] ( #compaction-row-limit )
129
126
- [ compaction-max-num-files-per-plan] ( #compaction-max-num-files-per-plan )
@@ -135,11 +132,14 @@ influxdb3 serve
135
132
- [ parquet-mem-cache-size] ( #parquet-mem-cache-size )
136
133
- [ parquet-mem-cache-prune-percentage] ( #parquet-mem-cache-prune-percentage )
137
134
- [ parquet-mem-cache-prune-interval] ( #parquet-mem-cache-prune-interval )
138
- - [ disable-parquet-mem-cache] ( #disable-parquet-mem-cache )
139
135
- [ parquet-mem-cache-query-path-duration] ( #parquet-mem-cache-query-path-duration )
136
+ - [ disable-parquet-mem-cache] ( #disable-parquet-mem-cache )
140
137
- [ last-cache-eviction-interval] ( #last-cache-eviction-interval )
138
+ - [ last-value-cache-disable-from-history] ( #last-value-cache-disable-from-history )
141
139
- [ distinct-cache-eviction-interval] ( #distinct-cache-eviction-interval )
142
- - [ Processing engine] ( #processing-engine )
140
+ - [ distinct-value-cache-disable-from-history] ( #distinct-value-cache-disable-from-history )
141
+ - [ query-file-limit] ( #query-file-limit )
142
+ - [ Processing Engine] ( #processing-engine )
143
143
- [ plugin-dir] ( #plugin-dir )
144
144
- [ virtual-env-location] ( #virtual-env-location )
145
145
- [ package-manager] ( #package-manager )
@@ -164,7 +164,7 @@ This value must be different than the [`--node-id`](#node-id) value.
164
164
165
165
| influxdb3 serve option | Environment variable |
166
166
| :--------------------- | :--------------------------------- |
167
- | ` --cluster-id ` | ` INFLUXDB3_ENTERPRISE_my-cluster-01 ` |
167
+ | ` --cluster-id ` | ` INFLUXDB3_ENTERPRISE_CLUSTER_ID ` |
168
168
169
169
---
170
170
@@ -235,6 +235,17 @@ configuration--for example, the same bucket.
235
235
| :--------------------- | :--------------------------------- |
236
236
| ` --node-id ` | ` INFLUXDB3_NODE_IDENTIFIER_PREFIX ` |
237
237
238
+
239
+ #### node-id-from-env
240
+
241
+ Specifies the node identifier used as a prefix in all object store file paths.
242
+ Defines this node identified from the specificed environment variable;
243
+ this cannot be used with the ` --node-id ` option also specified.
244
+
245
+ | influxdb3 serve option | Environment variable |
246
+ | :--------------------- | :----------------------------------- |
247
+ | ` --node-id-from-env ` | ` INFLUXDB3_NODE_IDENTIFIER_FROM_ENV ` |
248
+
238
249
---
239
250
240
251
#### object-store
@@ -255,26 +266,49 @@ This option supports the following values:
255
266
256
267
---
257
268
258
- #### query-file-limit
269
+ #### tls-key
259
270
260
- Limits the number of Parquet files a query can access.
261
- If a query attempts to read more than this limit, InfluxDB returns an error.
271
+ The path to a key file for TLS to be enabled.
262
272
263
- ** Default:** ` 432 `
273
+ | influxdb3 serve option | Environment variable |
274
+ | :--------------------- | :--------------------- |
275
+ | ` --tls-key ` | ` INFLUXDB3_TLS_KEY ` |
264
276
265
- You can increase this limit to allow more files to be queried, but be aware of
266
- the following side-effects:
277
+ ---
267
278
268
- - Degraded query performance for queries that read more Parquet files
269
- - Increased memory usage
270
- - Your system potentially killing the ` influxdb3 ` process due to Out-of-Memory
271
- (OOM) errors
272
- - If using object storage to store data, many GET requests to access the data
273
- (as many as 2 requests per file)
279
+ #### tls-cert
280
+
281
+ To a cert file for TLS to be enabled.
282
+
283
+ | influxdb3 serve option | Environment variable |
284
+ | :--------------------- | :--------------------- |
285
+ | ` --tls-cert ` | ` INFLUXDB3_TLS_CERT ` |
286
+
287
+ ---
288
+
289
+ #### tls-minimum-version
290
+
291
+ The minimum version for TLS.
292
+ Valid values are ` tls-1.2 ` or ` tls-1.3 ` default is tls-1.2
293
+
294
+ | influxdb3 serve option | Environment variable |
295
+ | :---------------------- | :----------------------- |
296
+ | ` --tls-minimum-version ` | ` INFLUXDB3_TLS_MINIMUM_VERSION ` |
297
+
298
+ ---
299
+
300
+ #### without-auth
301
+
302
+ Starts the database with authentication disabled. All requests will be served without any
303
+ token or authentication required.
304
+
305
+ ---
306
+
307
+ #### disable-authz
308
+
309
+ Optionally disable authz by passing in a comma separated list of resources.
310
+ Valid values are ` health ` , ` ping ` , and ` metrics ` .
274
311
275
- | influxdb3 serve option | Environment variable |
276
- | :--------------------- | :--------------------------- |
277
- | ` --query-file-limit ` | ` INFLUXDB3_QUERY_FILE_LIMIT ` |
278
312
279
313
---
280
314
@@ -935,35 +969,6 @@ they are deleted when the number of snapshotted WAL files exceeds this number.
935
969
936
970
---
937
971
938
- ### Replication
939
-
940
- - [ read-from-node-ids] ( #read-from-node-ids )
941
- - [ replication-interval] ( #replication-interval )
942
-
943
- #### read-from-node-ids
944
-
945
- Specifies a comma-separated list of writer identifier prefixes (` node-id ` s) to
946
- read WAL files from. [ env: =]
947
-
948
- | influxdb3 serve option | Environment variable |
949
- | :--------------------- | :------------------------------ |
950
- | ` --read-from-node-ids ` | ` INFLUXDB3_ENTERPRISE_READ_FROM_WRITER_IDS ` |
951
-
952
- ---
953
-
954
- #### replication-interval
955
-
956
- Defines the interval at which each replica specified in the
957
- ` read-from-node-ids ` option is replicated.
958
-
959
- ** Default:** ` 250ms `
960
-
961
- | influxdb3 serve option | Environment variable |
962
- | :----------------------- | :------------------------------------------ |
963
- | ` --replication-interval ` | ` INFLUXDB3_ENTERPRISE_REPLICATION_INTERVAL ` |
964
-
965
- ---
966
-
967
972
### Compaction
968
973
969
974
- [ compaction-row-limit] ( #compaction-row-limit )
@@ -1114,26 +1119,26 @@ Sets the interval to check if the in-memory Parquet cache needs to be pruned.
1114
1119
1115
1120
---
1116
1121
1117
- #### disable- parquet-mem-cache
1122
+ #### parquet-mem-cache-query-path-duration
1118
1123
1119
- Disables the in-memory Parquet cache. By default, the cache is enabled.
1124
+ Specifies the duration to check if Parquet files pulled in query path
1125
+ require caching, expressed as a human-readable duration (starting from _ now_ )--for example: ` 5h ` , ` 3d ` .
1126
+
1127
+ ** Default:** ` 5h `
1120
1128
1121
1129
| influxdb3 serve option | Environment variable |
1122
1130
| :---------------------------- | :------------------------------------ |
1123
- | ` --disable- parquet-mem-cache ` | ` INFLUXDB3_DISABLE_PARQUET_MEM_CACHE ` |
1131
+ | ` --parquet-mem-cache-query-path-duration ` | ` INFLUXDB3_PARQUET_MEM_CACHE_QUERY_PATH_DURATION ` |
1124
1132
1125
1133
---
1126
1134
1127
- #### parquet-mem-cache-query-path-duration
1128
-
1129
- Specifies the duration to check if Parquet files pulled in query path
1130
- require caching, expressed as a human-readable duration (starting from _ now_ )--for example: ` 5h ` , ` 3d ` .
1135
+ #### disable-parquet-mem-cache
1131
1136
1132
- ** Default: ** ` 5h `
1137
+ Disables the in-memory Parquet cache. By default, the cache is enabled.
1133
1138
1134
1139
| influxdb3 serve option | Environment variable |
1135
1140
| :---------------------------- | :------------------------------------ |
1136
- | ` --parquet-mem-cache-query-path-duration ` | ` INFLUXDB3_PARQUET_MEM_CACHE_QUERY_PATH_DURATION ` |
1141
+ | ` --disable- parquet-mem-cache ` | ` INFLUXDB3_DISABLE_PARQUET_MEM_CACHE ` |
1137
1142
1138
1143
---
1139
1144
@@ -1150,6 +1155,17 @@ expressed as a human-readable duration--for example: `20s`, `1m`, `1h`.
1150
1155
1151
1156
---
1152
1157
1158
+ #### last-value-cache-disable-from-history
1159
+
1160
+ Disable populating the Last-N-Value cache from historical data.
1161
+ When disabled, the cache will still be populated with data from the WAL.
1162
+
1163
+ | influxdb3 serve option | Environment variable |
1164
+ | :---------------------------------------- | :------------------------------------------------ |
1165
+ | ` --last-value-cache-disable-from-history ` | ` INFLUXDB3_LAST_VALUE_CACHE_DISABLE_FROM_HISTORY ` |
1166
+
1167
+ ---
1168
+
1153
1169
#### distinct-cache-eviction-interval
1154
1170
1155
1171
Specifies the interval to evict expired entries from the distinct value cache,
@@ -1163,7 +1179,28 @@ expressed as a human-readable duration--for example: `20s`, `1m`, `1h`.
1163
1179
1164
1180
---
1165
1181
1166
- ### Processing engine
1182
+ #### distinct-value-cache-disable-from-history
1183
+
1184
+ Disable populating the Distinct Value cache from historical data.
1185
+ When disabled, the cache will still be populated with data from the WAL.
1186
+
1187
+ | influxdb3 serve option | Environment variable |
1188
+ | :-------------------------------------------- | :---------------------------------------------------- |
1189
+ | ` --distinct-value-cache-disable-from-history ` | ` INFLUXDB3_DISTINCT_VALUE_CACHE_DISABLE_FROM_HISTORY ` |
1190
+ ---
1191
+
1192
+ #### query-file-limit
1193
+
1194
+ Limits the number of Parquet files a query can access.
1195
+ If a query attempts to read more than this limit, InfluxDB returns an error.
1196
+
1197
+ | influxdb3 serve option | Environment variable |
1198
+ | :--------------------- | :--------------------------- |
1199
+ | ` --query-file-limit ` | ` INFLUXDB3_QUERY_FILE_LIMIT ` |
1200
+
1201
+ ---
1202
+
1203
+ ### Processing Engine
1167
1204
1168
1205
- [ plugin-dir] ( #plugin-dir )
1169
1206
- [ virtual-env-location] ( #virtual-env-location )
@@ -1186,7 +1223,7 @@ engine uses.
1186
1223
1187
1224
| influxdb3 serve option | Environment variable |
1188
1225
| :----------------------- | :--------------------- |
1189
- | ` --virtual-env-location ` | ` VIRTUAL_ENV_LOCATION ` |
1226
+ | ` --virtual-env-location ` | ` VIRTUAL_ENV ` |
1190
1227
1191
1228
---
1192
1229
0 commit comments