-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Add ability to throttle streaming sinks #1051
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@s1mpS Hi! I believe using a combination of the |
@LucioFranco Hi Lucio, thanks for the quick reply. I noticed the rate_limit options for the elasticsearch sink, but there does not seem to be one for the vector sink yet. As this is the recommended sink when deploying vector as an agent, it would be great to have this as an option in this sink too. |
@s1mpS yup, this is because sinks like the |
I've added a couple more sinks to the list here but most likely what we will want to do is use some form of throttle https://docs.rs/tokio/0.2.0-alpha.6/tokio/stream/trait.StreamExt.html#method.throttle like this one. That said, the tokio throttle seems a bit limited and we might want to allow users to specify something similar to how our rate limits are configured by setting an amount of data that should be sent over a window and any more should apply back pressure. |
👍 , although our |
Is it possible to add a |
@a-rodin Yes, and we even have #258 already to represent it 😄 I think I'd prefer using the transform over adding options to every sink. The downside would be that we couldn't really integrate it with encoders for precise bytesize-based limits. Or we can at least implement the transform first, and then integrate into sinks/encoders in a second pass. |
I agree, closing this in favor of #258. |
Currently there seems to be no mechanism to limit the bandwidth used by vector when sending events.
In large environments, this could potentially lead to problems, especially when one or more vector instances start streaming buffered events or resume reading from a file source.
The text was updated successfully, but these errors were encountered: