-
A note for the community
ProblemWe are currently testing Vector in our k8s clusters to replace the Fluent Bit log collector. However, we are faced with high memory consumption relative to the Fluent Bit. At the same load, the Fluent Bit consumes 25 MiB of RAM, while Vector consumes up to 150 MiB. Why is there such a big difference? Configuration
Version0.42.0 Debug OutputNo response Example DataNo response Additional ContextNo response ReferencesNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
(converted this to a discussion since it doesn't seem like a bug report per se) I didn't dig deeply into your specific config, but in general there is a design difference between fluentbit and Vector in that fluentbit optimizes for a small footprint where Vector optimizes for throughput (at the cost of resources). You could consider running Vector under valgrind to profile the memory and see where it is being used. I do notice in your config that you've configured the |
Beta Was this translation helpful? Give feedback.
Good to hear it helped. For finding the optimal batch size, it'd be something like:
throughput = (events per batch * concurrency) / latency
You can plug in the variables you have and solve for the rest.