Commit graph

15 commits

Author SHA1 Message Date
Gavin M. Roy
b3fd59da9b Fix the goofy test 2017-04-05 17:14:55 -04:00
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
61bcc691e8 Remove the correlation-id assertion 2016-10-13 18:53:45 -04: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
98781c101d Move to millisecond precision 2016-09-14 01:27:55 -04:00
Gavin M. Roy
815949458b Remove content_type tag for now 2016-09-14 00:44:49 -04:00
Gavin M. Roy
821b80291b python2/3 compatibility fix 2016-09-14 00:32:16 -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
080a480ff7 Add content_length, content_type, and accept values 2016-09-13 21:49:58 -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
dc32d0089e Fix the broken tests (INFLUX_ -> INFLUXDB_) 2016-09-13 16:15:52 -04:00
Gavin M. Roy
72154b47b2 Remove the CURL option 2016-09-13 16:10:31 -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