Update README.md

pull/14656/head
kelseiv 2019-08-01 17:30:52 -07:00 committed by GitHub
parent 8ab8c0bc29
commit fb99e61598
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -171,15 +171,15 @@ See below for more information.
influx -import -path=metrics-default influx -import -path=metrics-default
``` ```
To redirect failed import lines to another file, run this command: To redirect failed import messages (errors and output) to a file called failure, run this command:
```sh ```sh
influx -import -path=metrics-default.gz -compressed > failures influx -import -path=metrics-default.gz -compressed 2> failures 2>&1
``` ```
The import will use the line protocol in batches of 5,000 lines per batch when sending data to the server. The import will use the line protocol in batches of 5,000 lines per batch when sending data to the server.
### Throttiling the import ### Throttling the import
If you need to throttle the import so the database has time to ingest, you can use the `-pps` flag. This will limit the points per second that will be sent to the server. If you need to throttle the import so the database has time to ingest, you can use the `-pps` flag. This will limit the points per second that will be sent to the server.