-
Notifications
You must be signed in to change notification settings - Fork 25
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
Allow large test data files (#139) #177
Conversation
amandahla
commented
Jan 20, 2022
- Convert CSV to GZIP BASE64 format
- Create InitContainer that convert back to CSV and copy to volume so worker can access the CSV
Hello @amandahla ! Thank you very much for your interest to Kangal! |
@s-radyuk Great project :-) |
Hello again @amandahla Sorry for the delay with the answer. Thank you for paying attention to the problem with large testdata files. We also investigated it before and found some limitations on the Kubernetes side. Here are some cases that we’ve tried and their errors:
I saw your proposal and I totally agree that dynamic volume provisioning with ReadWriteMany can help us in this case. I also had a chance to try out the code from this PR and I've noticed the following change in behaviour (unfortunately our integration tests don't show this problem): Config map with testdata now contains testdata.csv.gz, which is expected with the change from this PR. But for some reason the data is not extracted to the |
Hi @s-radyuk , thanks for testing! I'm really sorry but I could swear that I tested this code and it worked fine (maybe it's too hot here in Brazil and it's affecting my brain). Anyway, I have changed a few things and now I suppose that should work with bigger CSV files. I had to modify the Spec and I'm not sure if I did it in the right place. To work with ingress-nginx (for example), it would be necessary to change "proxy-body-size" via annotations or configmap like explained here kubectl annotate --overwrite ingress kangal-proxy nginx.ingress.kubernetes.io/proxy-body-size="10M" kubectl annotate --overwrite ingress nginx.ingress.kubernetes.io/proxy-body-size=10M --all |
Update to fix split files between the workers. @thiagoarrais good catch! |
Codecov Report
@@ Coverage Diff @@
## master #177 +/- ##
=======================================
Coverage 59.89% 59.90%
=======================================
Files 36 36
Lines 2713 2756 +43
=======================================
+ Hits 1625 1651 +26
- Misses 970 985 +15
- Partials 118 120 +2
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @amandahla 👋
Thank you for taking the time for this contribution so far, we really appreciate it!
I left some small comments/suggestions, if you address them and fix the conflicts I'll make sure to review it, to move this PR forward 🙂
…itcontainer (hellofresh#139) * create bigger csv file to jmeter integration test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing the conflicts, just tested all locally and it seems to be working nicely. ✔️
Thank you very much your contribution !
💚 💙 💜 💛 ❤️