@@ -153,6 +153,8 @@ To configure InfluxDB, use the following configuration options when starting the
153
153
- [ nats-max-payload-bytes] ( #nats-max-payload-bytes ) <em style =" opacity :.65 " >- (deprecated)</em >
154
154
- [ nats-port] ( #nats-port ) <em style =" opacity :.65 " >- (deprecated)</em >
155
155
- [ no-tasks] ( #no-tasks )
156
+ - [ overwrite-pid-file] ( #overwrite-pid-file )
157
+ - [ pid-file] ( #pid-file )
156
158
- [ pprof-disabled] ( #pprof-disabled )
157
159
- [ query-concurrency] ( #query-concurrency )
158
160
- [ query-initial-memory-bytes] ( #query-initial-memory-bytes )
@@ -1333,6 +1335,104 @@ no-tasks = true
1333
1335
1334
1336
---
1335
1337
1338
+ ### overwrite-pid-file
1339
+ Overwrite the PID file specified by [ pid-file] ( #pid-file ) if it exists, instead of exiting with an error.
1340
+
1341
+ ** Default:** ` false `
1342
+
1343
+ | influxd flag | Environment variable | Configuration key |
1344
+ | :--------------------- | :--------------------------- | :------------------- |
1345
+ | ` --overwrite-pid-file ` | ` INFLUXD_OVERWRITE_PID_FILE ` | ` overwrite-pid-file ` |
1346
+
1347
+ ###### influxd flag
1348
+ <!-- pytest.mark.skip-->
1349
+
1350
+ ``` sh
1351
+ influxd --overwrite-pid-file
1352
+ ```
1353
+
1354
+ ###### Environment variable
1355
+ ``` sh
1356
+ export INFLUXD_OVERWRITE_PID_FILE=true
1357
+ ```
1358
+
1359
+ ###### Configuration file
1360
+ {{< code-tabs-wrapper >}}
1361
+ {{% code-tabs %}}
1362
+ [ YAML] ( # )
1363
+ [ TOML] ( # )
1364
+ [ JSON] ( # )
1365
+ {{% /code-tabs %}}
1366
+ {{% code-tab-content %}}
1367
+ ``` yml
1368
+ overwrite-pid-file : true
1369
+ ` ` `
1370
+ {{% /code-tab-content %}}
1371
+ {{% code-tab-content %}}
1372
+ ` ` ` toml
1373
+ overwrite-pid-file = true
1374
+ ```
1375
+ {{% /code-tab-content %}}
1376
+ {{% code-tab-content %}}
1377
+ ``` json
1378
+ {
1379
+ "overwrite-pid-file" : true
1380
+ }
1381
+ ```
1382
+ {{% /code-tab-content %}}
1383
+ {{< /code-tabs-wrapper >}}
1384
+
1385
+ ---
1386
+
1387
+ ### pid-file
1388
+ Write the PID file to the specified path and remove it when InfluxDB stops.
1389
+
1390
+ ** Default:** ``
1391
+
1392
+ | influxd flag | Environment variable | Configuration key |
1393
+ | ------------- | :------------------- | :---------------- |
1394
+ | ` --pid-file ` | ` INFLUXD_PID_FILE ` | ` pid-file ` |
1395
+
1396
+ ###### influxd flag
1397
+ <!-- pytest.mark.skip-->
1398
+
1399
+ ``` sh
1400
+ influxd --pid-file /path/to/pid-file
1401
+ ```
1402
+
1403
+ ###### Environment variable
1404
+ ``` sh
1405
+ export INFLUXD_PID_FILE=/path/to/pid-file
1406
+ ```
1407
+
1408
+ ###### Configuration file
1409
+ {{< code-tabs-wrapper >}}
1410
+ {{% code-tabs %}}
1411
+ [ YAML] ( # )
1412
+ [ TOML] ( # )
1413
+ [ JSON] ( # )
1414
+ {{% /code-tabs %}}
1415
+ {{% code-tab-content %}}
1416
+ ``` yml
1417
+ pid-file : /path/to/pid-file
1418
+ ` ` `
1419
+ {{% /code-tab-content %}}
1420
+ {{% code-tab-content %}}
1421
+ ` ` ` toml
1422
+ pid-file = "/path/to/pid-file"
1423
+ ```
1424
+ {{% /code-tab-content %}}
1425
+ {{% code-tab-content %}}
1426
+ ``` json
1427
+ {
1428
+ "pid-file" : " /path/to/pid-file"
1429
+ }
1430
+ ```
1431
+ {{% /code-tab-content %}}
1432
+ {{< /code-tabs-wrapper >}}
1433
+
1434
+ ---
1435
+
1336
1436
### pprof-disabled
1337
1437
Disable the ` /debug/pprof ` HTTP endpoint.
1338
1438
This endpoint provides runtime profiling data and can be helpful when debugging.
0 commit comments