If a particularly large downsample is generated, InfluxDB OSS 1.8.10 may reject the write
2023-02-07 17:14:03.154564: Writing to output home1x failed: (413)
Reason: Request Entity Too Large
HTTP response headers: HTTPHeaderDict({'Content-Type': 'application/json', 'Request-Id': 'd19a7440-a70a-11ed-8867-0242ac130002', 'X-Influxdb-Build': 'OSS', 'X-Influxdb-Error': 'Request Entity Too Large', 'X-Influxdb-Version': '1.8.10', 'X-Request-Id': 'd19a7440-a70a-11ed-8867-0242ac130002', 'Date': 'Tue, 07 Feb 2023 17:14:02 GMT', 'Content-Length': '37', 'Connection': 'close'})
HTTP response body: {"error":"Request Entity Too Large"}
Activity
07-Feb-23 17:25
assigned to @btasker
07-Feb-23 17:27
It probably just needs
max-body-size
setting in InfluxDB's config, but it'd be good to look at whether we can provide a setting to split output batches if necessary.07-Feb-23 19:10
It'll interfere with the change made in #9, but the simplest way to implement this would probably be to move the InfluxDB client to using batch mode.
Doing that would also have the benefit that we move onto processing the next job that bit sooner (which is a bit of double-edged sword - it'll also lead to increased resource consumption as we may end up holding multiple datasets, or parts of datasets in RAM).
07-Feb-23 19:28
mentioned in commit 9c552984f00c5e613ade2dddaac1bbee174d2a15
Message
Switch upstream writes to batching mode utilities/python_influxdb_downsample#15
This brings a number of benefits
07-Feb-23 19:50
mentioned in commit c687c8de738b62501d810913b6f10722a65826aa
Message
Adjust recordFailures so that we log when a batch write failed. utilities/python_influxdb_downsample#15
It's no longer possible for us to write data to disk for re-ingest later - although the data is available to us, we no longer have access to details about which output it was being written into etc.
07-Feb-23 19:51
I'm going to relabel and update the description on this issue, although big writes failing were the cause it's probably more accurate to title this "switch to batching writes"
07-Feb-23 19:51
changed title from {-Big writes to Influx 1.x fail-} to {+Switch to Batched Writes+}
07-Feb-23 19:56
mentioned in issue #11
10-Feb-23 09:06
mentioned in issue #18