Add note on increasing ulimit, "too many open files" errors

Closes #1517
pull/1539/head
pierwill 2020-09-23 15:51:14 -07:00
parent ddf17d2339
commit c83be789bc
1 changed files with 16 additions and 0 deletions

View File

@ -64,6 +64,22 @@ To test the CSV to line protocol conversion process, use the `influx write dryru
command to print the resulting line protocol to stdout rather than write to InfluxDB.
{{% /note %}}
{{% note %}}
##### "too many open files" errors
When attempting to write large amounts of CSV data into InfluxDB, you might see an error like the following:
```
Error: Failed to write data: unexpected error writing points to database: [shard <#>] fcntl: too many open files.
```
To fix this error, run the following command to increase the number of open files allowed by the OS (works on both Linux and MacOS):
```
ulimit -n 10000
```
{{% /note %}}
## CSV Annotations
Use **CSV annotations** to specify which element of line protocol each CSV column
represents and how to format the data. CSV annotations are rows at the beginning