microsoft / azure-container-apps

Roadmap and issues for Azure Container Apps
MIT License
356 stars 27 forks source link

Feature Request: Image cache like AKS to reduce the pull image time. #1111

Open maythamfahmi opened 3 months ago

maythamfahmi commented 3 months ago

Is your feature request related to a problem? Please describe.
We have a container image size of around 7 GB. When running the job multiple times in the Azure Container App Environment, each job execution pulls the image and takes approximately 5 minutes. Let's say running a job 100 times, and ending pulling the same image 100 times.

Describe the solution you'd like.
It would be great to make it possible for the container image to be cached once in ACA jobs, so we do not need to pull it again from ACR as it is an unnecessary resource and time killer factor. It should of course refresh a new update of the container when the same image is updated in ACR. And maybe to not overuse the cache, make only images with specific tags that get cached, like release, latest, etc.

Illustrative Example: image

Describe alternatives you've considered.
We have upgraded to ACR premium but did not improve the pull time in the Azure Container App job.

Additional context.
We have a consumption Azure Container App Environment with Jobs. We use ACR premium.

as you can see the time takes to pull the same image

image

maythamfahmi commented 3 months ago

We have played around with it and improved the pull time, it was some network routing, but still would benefit improves pull time by introducing a cache feature for the job or app container so that it can boost the scaling faster.