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

Reduce size #79

Closed
eliskovets opened this issue Sep 30, 2022 · 1 comment
Closed

Reduce size #79

eliskovets opened this issue Sep 30, 2022 · 1 comment

Comments

@eliskovets
Copy link

Hi guys,
At first I would like to thank you for the extension.
It's really easy to integrate it to a lambda function, but we face some issues with the final size of a lambda as it counts all layers against the limit of 250MB.
The size of an extension is about 174Mb, so we have just 72 Mb left for our other layers.

Looks like most of the size is coming from go-binsize-viz/example-data/

du -hs ~/Downloads/datadog-lambda-extension-29/scripts/go-binsize-viz/example-data/
164M    /Users/eliskovets_pdl/Downloads/datadog-lambda-extension-29/scripts/go-binsize-viz/example-data/

I'm not exactly sure if it would be fine to exclude this directory from the extension or not, but if it can be excluded, it would really help us and would reduce the size of extension to just about 10Mb.

Thank you!

@eliskovets
Copy link
Author

Closing as it seems that the layer is actually much smaller than I've assumed by the size of released zip file:

"Arn": "arn:aws:lambda:us-west-2:464622532012:layer:Datadog-Python39:27",
"CodeSize": 4554216,

"Arn": "arn:aws:lambda:us-west-2:464622532012:layer:Datadog-Extension:27",
"CodeSize": 9558379,

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

2 participants