Skip to content

Support max_bytes for memory buffers #8679

@jszwedko

Description

@jszwedko

Requested by user in discord.

They are trying to limit Vector memory usage by tweaking the in-memory buffer sizes, but since we only support max_events there it is difficult to estimate unless you know the average event sizes before-hand.

Given we recently added a method for approximating memory use of an event (#8396), I think we could leverage this to support max_bytes on in-memory buffers as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    domain: buffersAnything related to Vector's memory/disk bufferstype: enhancementA value-adding code change that enhances its existing functionality.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions