-
Notifications
You must be signed in to change notification settings - Fork 10
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
Package size exceeding lambda limits #56
Comments
The current There could be three solutions:
|
FYI @hrodmn since I know you are working on this. I'm going to assign it to you for now but we can close it and open a new issue if you prefer. |
In #74 I was able to create a Lambda package that was ~230 MB, but that was without the When I do set |
I don't think the impact is huge, that's an nice option 👍 |
Another way to reduce the Lambda package size is to run RUN find /asset -type f -name '*.so' -exec strip {} \; This command strips debug information from the compiled C/C++ extensions. With this change alone I can bring the Lambda package size down to 204 MB. If we I tested out the |
I think I had issue in the past with the |
Thanks for the heads up! I did some testing with the After some testing it appears that if we leave the *everything: the container can start, I can render tiles for a COG from the internet ( |
This is great 🙌 we should apply this on other projects 🙏 |
Nice thank you @hrodmn |
I tried deploying this package as is to AWS lambda following the procedure in
infrastructure/aws
-- namely, deploying the package as a zip file in S3 which is then pulled by the lambda. I am getting an error due to the size of the unzipped package exceeding the limit of 262 MB -- I am at 263 MB.One solution could be to switch to a docker-container based lambda but this is going to make the application slower. Instead, we could make the
redis
dependencies optional.I am also suggesting that we pin more aggressively the package versions so as to prevent package size increase in the future -- which is what caused this issue (in the first place this package wasn't exceeding the size limit, and I guess that since then some of our dependencies increased in size and we hadn't pinned them).
What do you think of the latter?
The text was updated successfully, but these errors were encountered: