Commit graph

7 commits

Author SHA1 Message Date
Gavin M. Roy
b94f14bd66 Add batch submission probability 2017-04-05 14:01:08 -04:00
Gavin M. Roy
f671b7029c Change batch submission logic
- Submit batches serially while the count of buffered measurements exceed a configurable threshold (minimum triggered batch size). Batches can be larger than this value (maximum batch size)
- If the there are measurements in the buffer but the threshold is not met after N seconds (60 by default), submit a batch that is less than minimum triggered batch size.
- rename sprockets_influxdb.set_submission_interval to sprockets_influxdb.set_timeout
- Add new sprockets_influxdb.set_trigger_size
- Move from a single periodic callback object to adding a timeout to the ioloop
- Update tests to work with the new structure
- Add more detailed dubugging information
2016-11-09 15:50:27 -05:00
Gavin M. Roy
ead27c3942 Submit measurements one at a time for a rejected batch
Better edge case exception handling
2016-09-23 11:32:28 -04:00
Gavin M. Roy
b73679c57a Rework line protocol marshalling and more
- Rework how the line protocol is marshalled and support the various data types.
- Remove the accept tag
- Strip down content_type to the ``type/subtype`` format only
- Make ``correlation_id`` a field value and not tag
- Change the precision to second precision, per the InfluxDB docs (use the most
    coarse precision for better compression)
2016-09-14 00:27:05 -04:00
Gavin M. Roy
a9e5c99599 Dont use reverse_url to get the endpoint pattern in the mixin 2016-09-13 20:54:39 -04:00
Gavin M. Roy
8a766aee8b Move to a stand-alone module 2016-09-13 11:26:37 -04:00
Gavin M. Roy
11817fd1cf WIP of v1 2016-09-12 21:17:55 -04:00