Run scheduled flushes in background

doing this unblocks incoming metrics while waiting for a flush to take
place.

we have to create a semaphore so that we can
'skip' flushes that try to run while a flush is already running.

closes #2262
This commit is contained in:
Cameron Sparr
2017-01-17 15:01:12 -08:00
parent 22340ad984
commit 6df3f0fdae
2 changed files with 14 additions and 2 deletions

View File

@@ -10,6 +10,7 @@
### Bugfixes
- [#2077](https://github.com/influxdata/telegraf/issues/2077): SQL Server Input - Arithmetic overflow error converting numeric to data type int.
- [#2262](https://github.com/influxdata/telegraf/issues/2262): Flush jitter can inhibit metric collection.
## v1.2 [2017-01-00]