-
Notifications
You must be signed in to change notification settings - Fork 170
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
endpoints-runtime:2 containers are very large (1.34GB) #880
Comments
The actual impact of the images being so large, is that it makes the cold start time in Google Cloud Run for the espv2 containers about ~1.5s. |
You can do it yourself with this Dockerfile:
This will generate a version which is ~180Mb in size and still works on Google Cloud Run. |
I tested the latency on Google Cloud Run, seems like I'm still getting the same latencies, so I guess it's not that big of an issue. I was wrong! |
I also think that it would be a good idea to strip ESPv2's Envoy binary by default. @paulhong01 @numanelahi @TAOXUY, what do you think about that? It should be easy enough to add a |
I noticed that the ESPv2 containers are much larger than the ones for ESPv1:
Nearly all of this is due to the envoy binary:
As a test, I ran
strip
on the envoy binary and the result was much smaller.What do you think about adding
strip
to the official build process?The text was updated successfully, but these errors were encountered: