Skip to content

How to calculate buffer size? #153

@szerwi

Description

@szerwi

I have a problem with understanding buffer size.
I set batch size to 1 and buffer size to 65535, which is the maximum number for uint16_t. I also set flush interval to 65535.
My code is sending data to database every 10 seconds. Each point contains 3 fields.
Once every 10 minutes the point is bigger, it contains 27 fields.

I understand it in this way: if buffer size is set to 2, it can hold 2 points (regardless the fields number).
In this situation I should be able to store 182 hours of data. Unfortunately, the buffer gets full after around 40 minutes.

How to properly calculate buffer size? Is there any way to store a few hours of data in case there is no Internet connection?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions