Skip to content

Commit 0104827

Browse files
authored
Merge branch 'master' into docs/v3/processing-engine
2 parents 63d3946 + 62bd81d commit 0104827

File tree

2 files changed

+106
-0
lines changed

2 files changed

+106
-0
lines changed

content/influxdb/v2/reference/config-options.md

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@ To configure InfluxDB, use the following configuration options when starting the
153153
- [nats-max-payload-bytes](#nats-max-payload-bytes) <em style="opacity:.65">- (deprecated)</em>
154154
- [nats-port](#nats-port) <em style="opacity:.65">- (deprecated)</em>
155155
- [no-tasks](#no-tasks)
156+
- [overwrite-pid-file](#overwrite-pid-file)
157+
- [pid-file](#pid-file)
156158
- [pprof-disabled](#pprof-disabled)
157159
- [query-concurrency](#query-concurrency)
158160
- [query-initial-memory-bytes](#query-initial-memory-bytes)
@@ -1333,6 +1335,104 @@ no-tasks = true
13331335

13341336
---
13351337

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+
13361436
### pprof-disabled
13371437
Disable the `/debug/pprof` HTTP endpoint.
13381438
This endpoint provides runtime profiling data and can be helpful when debugging.

data/influxd_flags.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@
7777
- flag: "--no-tasks"
7878
added: 2.0
7979

80+
- flag: "--overwrite-pid-file"
81+
added: 2.7
82+
83+
- flag: "--pid-file"
84+
added: 2.7
85+
8086
- flag: "--pprof-disabled"
8187
added: 2.0
8288

0 commit comments

Comments
 (0)