Skip to content
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

maxBufferAgeMillis does work independently #253

Open
hubertli opened this issue Mar 31, 2023 · 0 comments
Open

maxBufferAgeMillis does work independently #253

hubertli opened this issue Mar 31, 2023 · 0 comments

Comments

@hubertli
Copy link

According to AWS supporter response: " if any data has been in the buffer for more than the time specified in "maxbufferagemillis," it will be delivered regardless of value configured for size or number of records for the buffer."

but my test shows different behavior.
Kinesis agent version: 2.0.6

I set maxBufferAgeMillis to 600000 for different logs, e.g. /var/log/A.log* and /var/log/B.log*. Then I can see log A is ingested to the data stream and counterpart S3 bucket in every 10 minutes, but it's 20 minutes for log B. The configurations(Kinesis agent, data streams and S3) are same for both A and B, the only difference is that B has only one record in the log file, but A has many.

So I changed agent.json with the configuration below:
"maxBufferAgeMillis": 600000,
"maxBufferSizeBytes": 1,
"maxBufferSizeRecords": 1

Then I can see the log B is ingested to there in every 10 minutes. So maxbufferagemillis does work independently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant