Comments (3)
@kubaceg, write limiting is possible only in InfluxDB CLI. In fact, it controls reading rate, because conroling write could lead to buffer overflow.
So, you can control the rate by limit writes to this library.
from influxdb-client-go.
Hi @vlastahajek. A buffer overflow can easily be avoided by blocking calls to the write functions once the buffer is full. In my opinion, that's the intuitive functionality of a library such as this, and it seems like common sense to me.
from influxdb-client-go.
@awfm9, sure, this is the obvious way how to achieve that. As the library has two ways how to write data (sync and async), there is a couple of consequences:
- Sync write returns an error, but the user will have to distinguish true write errors and rejected writes
- Async write doesn't return an error
It seems to me that such a feature could be done by adding e.g. writeWithRate
to both write APIs, which will return bool
(and error
in case of sync API), informing whether the write was accepted.
from influxdb-client-go.
Related Issues (20)
- Allow overriding the default User-Agent header HOT 7
- join.time result is empty HOT 2
- Accidential non-nil error when batching with `WriteAPIBlocking` HOT 1
- when influxdb server shutdown, client still send metric, the background goroutine "w.writeProc()" will crash at rand.Intn() after try 52 times HOT 1
- proxy setting via environment var doesn't work
- APIClient().GetChecks return null checks HOT 1
- TableChanged() doesn't detect yield() boundaries HOT 1
- Allow Querying through InfluxQL HOT 2
- Delete timeseries.
- WriteAPIBlocking and QueryAPI got EOF for sometime
- "influxdb2client E! Write error: json: cannot unmarshal string into Go struct field Error.Err of type error" in logs HOT 3
- QueryWithParams in the influxdb Docker image HOT 1
- Data race in queryAPI
- Query into Point structs HOT 2
- WriteAPIImpl.WritePoint blocks on Encoding error HOT 3
- Create Alerts (Checks, Notification Endpoint, Notification Rule) via influxdb-client-go in Influxdb2 HOT 3
- retention not change after call UpdateBucket HOT 1
- Large queries and intermittent internet connectivity cause truncated dataset to be returned instead of error HOT 1
- `*api.QueryTableResult` `TableChanged` and `TablePosition` not working HOT 2
- Such a single API sub-client instance can be used concurrently.The performance of the client differs significantly from that of the Inch tool? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from influxdb-client-go.