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

Tune file size create by Secor #2449

Open
lukass77 opened this issue Dec 14, 2022 · 0 comments
Open

Tune file size create by Secor #2449

lukass77 opened this issue Dec 14, 2022 · 0 comments

Comments

@lukass77
Copy link

lukass77 commented Dec 14, 2022

Hello ,
I have a question , I am working on upgrade secor version to be the secor master branch ..
with that I succeed to run "Dev" env ,where I write all output file .gzip to s3 "Dev" bucket ..
what I saw that secor create lot of small files ..in s3 bucket ..

question - how can I tune secor to create bigger size files and as a result of this will have less files number for the same events fetch from kafka ..

for example if reading 1000 events from topic .. , it can be split to 100 files of 10 events each file , or it can be split to 50 files where each file contains 20 events ..

I saw there is "secor.max.file.age.seconds" and "secor.max.file.size.bytes" properties .. but as far as I understood those impact the frequency ("when") the uplaod will be called .. but not the crated file size on disk ..

I am not sure I fully understand how secor "know" when to stop write the current file and start create the new file ..
is it upon file size , kafka batch .. or other crietira ? , file rolling policy ?
how can I control the size of a "single" output log file

Thanks in advance !!
Nir

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