You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to avoid rate limiting from pulling containers, we should aim to pull once at the start of a benchmark run and reuse these throughout. I believe we have some shell scripts that already do this, but we should make this part of the benchmark itself.
This could go in the conductor along with the dependency check to see if we have the images locally, then we could download them if they are not present.
IfNotPresent: If imagePullPolicy is set to be this value, for all containers in the pod, the image is pulled only if it is not already present locally on the node.
Always: For all containers in the pod, each time kubelet launches a container, it queries the image registry to resolve the required image name to an image digest, and if there is an image with the exact same digest cached locally on the node, then it reuses the locally cached image, otherwise it pulls the image.
Never: kubelet never tries fetching the image, it only uses locally cached ones, if there aren't required images on the node, startup fails.
In our cases, I checked all the pods for social network, hotel reservation to see their imagePullPolicy values: social network: All pods are set to be Always hotel reservation: 12 pods are set to be Always, 7 pods are set to be IfNotPresent
To do so, we need to set the imagePullPolicy field in values.yaml in helm-chart for helm installed apps, and to set the imagePullPolicy field in every *-deployment.yaml files in kubernetes directory for non-helm (kubernetes deployed) apps, I modified the locally files pulled from aiopslab-applications repo and it works, but we might need to commit those modifications to the repository.
Activity
HacksonClark commentedon Aug 6, 2025
I'm not sure if this will even matter since I think images will be reused anyways, if that's the case please let me know and we can close this issue.
jq-huang commentedon Aug 7, 2025
Just to clarify, by 'image' do you mean images for apps?
HacksonClark commentedon Aug 7, 2025
@777lefty Yes, I mean the container images that are used by the pods.
jq-huang commentedon Aug 7, 2025
As is mentioned in kubernetes documentation, whether images will be pulled or not depends on
imagePullPolicyattribute of the pod. (sees: https://kubernetes.io/docs/concepts/containers/images/#image-pull-policy) There are three possible values forimagePullPolicy:IfNotPresent: IfimagePullPolicyis set to be this value, for all containers in the pod, the image is pulled only if it is not already present locally on the node.Always: For all containers in the pod, each time kubelet launches a container, it queries the image registry to resolve the required image name to an image digest, and if there is an image with the exact same digest cached locally on the node, then it reuses the locally cached image, otherwise it pulls the image.Never: kubelet never tries fetching the image, it only uses locally cached ones, if there aren't required images on the node, startup fails.In our cases, I checked all the pods for
social network,hotel reservationto see theirimagePullPolicyvalues:social network: All pods are set to beAlwayshotel reservation: 12 pods are set to beAlways, 7 pods are set to beIfNotPresentHacksonClark commentedon Aug 7, 2025
@777lefty I think we could just switch to IfNotPresent. That seems to make the most sense for our use case.
jq-huang commentedon Aug 7, 2025
Got it, I'll try to modify it
jq-huang commentedon Aug 8, 2025
To do so, we need to set the
imagePullPolicyfield invalues.yamlinhelm-chartfor helm installed apps, and to set theimagePullPolicyfield in every*-deployment.yamlfiles inkubernetesdirectory for non-helm (kubernetes deployed) apps, I modified the locally files pulled from aiopslab-applications repo and it works, but we might need to commit those modifications to the repository.HacksonClark commentedon Aug 8, 2025
@777lefty yes, we would commit these
HacksonClark commentedon Aug 17, 2025
@777lefty has fixed this issue by updating the submodules.