I haven’t changed the registry.image_retention_time option on my cluster, and as it’s one year by default, I have a huge backlog of images on my ECR (which is costing us a lot of money!).
I am going to change its value, but I’d like to know what will happen to the qovery-mirror-*** repositories that are older than my new value. Will they be removed automatically by Qovery or should I clean them myself because the change is not retroactive?
From our experience, storing those images does not cost so much money, that’s why we set the default value to one year (and to avoid also unexpected behavior if you don’t redeploy your apps so often).
Can you tell me how much that costs you?
It’s not retroactive but if you really to clean up those images you can feel free to delete them - but make sure they are not used by your apps if you are running production workloads.
Ps: even if you have production apps, you can safely delete all the images if you redeploy right away your apps to force them to be regenerated by Qovery. But do this when your workload is low.
Just to be completely sure: you’re telling me that I can delete all the qovery-mirror-*** images on the ECR repository, and if I redeploy the cluster right away (when the workload is low), they will be regenerated safely. Is that right?
Image retention setting is not retroactif, it will set only for newly created ecr repository.
Regarding purging everything, you can do it, but you need to re-deploy all your environments just after it.
There will be no downtime, because image will be cached on the node of the cluster and currently running apps will be fine.
But if a new node is scaled-up in the cluster while you have deleted the image cache, it will fail to schedule the app.
So you can:
Delete all the qovery-mirror-*** ecr registry
change the image retention advance settings with the value you want
just after re-deploy all your environments for qovery to re-create the mirror with the new settings