Troubleshooting
Why InfluxDB asynchronous writes never land in the bucket
Short answer
A 450 points/s stream with three integer fields is about 1,350 field values per second, far below what an idle Core i5-8500 host fails to accept. If the CPU is near zero and the graph still stalls, the asynchronous Python write client is queueing points and dropping errors silently, not the server rejecting them.

On this page
The writes are not being dropped by InfluxDB. A stream of 450 points per second with three integer fields is roughly 1,350 field values per second, and your host shows near-zero CPU and 2 to 4 MB/s of disk I/O while the graph stalls. That is the signature of a server that is almost idle because requests never arrive, not one that is discarding data. The suspect is the asynchronous write path in the Python client: with write_options=ASYNCHRONOUS, calling the write method returns immediately, the client batches and dispatches in the background, and failures surface in callbacks rather than as exceptions at the call site. Track three counters, compare a direct API write against the client's stream, and you will find the requests are not completing.
Do the numbers first #
Work the arithmetic before touching any setting:
- 450 points/s × 3 integer fields per point = 1,350 field values per second.
- Each point carries a timestamp, a measurement name and a tag, so the byte rate is higher than the field-value rate, but even an order of magnitude above 2 to 4 MB/s is trivial for a local server.
- Observed load: CPU near zero, disk I/O 2 to 4 MB/s, network near idle. That is what the host looked like while most writes were not landing.
A saturated host looks different: CPU pinned, disk queue growing, and rejected-write entries in the server log. Your log, watched with docker logs --follow influxdb, shows nothing. An idle server with a silent log points upstream, at the client.
Why asynchronous writes fail without telling you #
In the asynchronous mode, submitting a point and completing an HTTP request are separate events. The client queues points and dispatches batches in background threads. Two documented consequences matter here:
- Per-request errors are reported through callbacks or client logging, not raised where you call the write method. If you never registered an error callback, a failing batch produces no output at all. This matches what you saw: nothing in the Python output, nothing in the server log.
- Points still queued when the program terminates normally are lost. The Python client's own issue tracker documents this failure mode: batched writes that have not been flushed when the process exits never reach the server. So a script that ends, crashes or is restarted drops whatever was in the queue.
Before choosing a remedy, read the installed package name and version. The names influxdb-python and influxdb-client-python are different libraries; the WriteApi.write(...) call and the ASYNCHRONOUS option belong to the v2 client family. The documented completion and flush calls differ between them, so the fix has to match what is actually installed.
Count three events #
Counters turn a silent failure into a located one:
- Samples created: a producer counter just before the point is built. Rising means acquisition is alive.
- Requests submitted: a counter wrapped around each call to the write method. Rising means your code is handing work to the client.
- Requests completed successfully: the client's documented success callback, incremented there. Only this proves the server accepted anything.
If the first two climb while the third stays flat, the failure is between your code and the socket, and no server-side change will fix it. The related article on what a single Telegraf point costs on InfluxDB disk makes the same point from the server side: judge ingestion by confirmed writes, not by dashboard refreshes.
Isolate the write path with a direct write #
Run this sequence before changing any throughput or batching setting:
- Capture the client's actual settings: destination server, organization, bucket, timestamp precision, measurement, field types and tags. Keep the token out of any diagnostic output.
- Serialize one point from the robot stream and check its timestamp against both the robot clock and the server clock. Confirm the timestamp unit matches the request precision; nanoseconds vs milliseconds off by a factor of a million lands data far outside your query range, which looks identical to a dropped write.
- Make one direct HTTP POST to the write endpoint with the same org, bucket and precision parameter, using a controlled sample with the robot schema. In the case behind this article, six direct writes to a test bucket succeeded while the robot stream stalled, which proved the server accepts writes at that moment.
- Read the written sample back with a range query that brackets its timestamp and confirm the measurement, tag and fields. A write that lands outside the queried range is indistinguishable from a write that never happened.
- Repeat the direct write against the robot's own bucket, not just a test bucket, so destination-specific causes such as field-type conflicts are covered.
If the direct write lands and the client's stream does not, the diagnosis is closed: client side.
The fix and the decision #
For the asynchronous path, register the client's documented error and success callbacks so every batch outcome is visible, and call the client's documented close-or-flush method before the program exits so queued points are dispatched. If you need the failure to stop your producer immediately, switch to the synchronous write option during commissioning; errors then appear at the call site. Once the path is proven, return to asynchronous or batched mode with the callbacks in place.
Decision, by case:
- CPU and disk idle, no log entries, submitted counter rising, completion counter flat: the asynchronous client is dropping batches silently. Add callbacks, flush on exit; the server needs nothing.
- Direct write fails to the robot bucket but succeeds to a test bucket: schema or field-type conflict in that bucket. Fix the point definition before blaming throughput.
- Sample read back at a timestamp outside the dashboard range: timestamp precision or clock mismatch. Align units and clocks; nothing is dropped.
- CPU pinned, disk latency rising, rejected writes in the server log at your point rate: only now is it a capacity question, and at 1,350 field values per second on the class of host described, that case has not arrived. If you later scale the tag count or rate, the historian sizing guidance on tag count and write rate is the place to start.
One safety note: a telemetry stream that silently stops is also an alarm stream that silently stops. If any of these current values feed an operator alert, treat a flat completion counter as a fault condition, not a cosmetic dashboard problem.
Questions asked
Is 450 points per second with three fields too much for InfluxDB?
No. That rate is about 1,350 field values per second. On the Ubuntu 24.04 host described, the CPU sat near zero and disk I/O at 2 to 4 MB/s while writes were failing, which is the opposite of a saturation signature. A host that cannot keep up shows rising CPU, rising disk latency or rejected-write errors in the server log. None of those appeared, so the ceiling is not the server.
Do ASYNCHRONOUS writes really drop silently when the program exits?
Yes. The client maintainers treat this as documented behavior of the batching asynchronous path: points still queued when the program terminates normally are lost, and per-request errors are delivered to callbacks instead of being raised where write() is called. Close the writer with its documented flush-and-close call before exit, and register the error callback, or points you believe were written never reach the bucket.
How do I confirm the server is accepting writes while the client runs?
Send one direct HTTP POST to the same org, bucket and nanosecond precision endpoint the Python client targets, with the same measurement, tags and field types. Read it back with a range query that brackets its timestamp. If the direct write lands while the client's stream stalls, the difference is on the client side, which is exactly what separates this from a schema or query problem.


