Skip to content

Build the locust image for the cluster's architecture - #555

Merged
Max Smythe (maxsmythe) merged 1 commit into
agent-substrate:mainfrom
chuangw6:bench/locust-image-platform
Jul 29, 2026
Merged

Build the locust image for the cluster's architecture#555
Max Smythe (maxsmythe) merged 1 commit into
agent-substrate:mainfrom
chuangw6:bench/locust-image-platform

Conversation

@chuangw6

Copy link
Copy Markdown
Collaborator

Problem

build_and_push.sh ran docker build with no --platform, so an arm64
workstation produced an arm64 image while GKE nodes (c3-standard-4) are
amd64. The push succeeds and nothing fails until the kubelet pulls, two
steps later:

no match for platform in manifest: not found

Solution

Default to linux/amd64, overridable via LOCUST_IMAGE_PLATFORM for arm64
node pools (T2A, Axion).

Notes

Verified: pushed manifest reports linux/amd64 and the locust pod reaches
3/3 Running.

@maxsmythe

Copy link
Copy Markdown
Collaborator

LGTM once comment nit is fixed

Comment thread benchmarking/locust/build_and_push.sh Outdated
IMAGE="us-docker.pkg.dev/${PROJECT_ID}/gcr.io/ate-images/locust-test:latest"

echo "Building Docker image: $IMAGE"
# Target platform must match the cluster's nodes, not the build host. Without

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment seems to over-explain things and mentions Google-specific hardware (Axion).

It is sufficient should say "# Target platform must match the cluster's nodes, not the build host"

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SG. Updated

docker build defaults to the build host's platform. On an Apple Silicon
workstation that produces an arm64 image, the push succeeds, and nothing
complains until the kubelet on an amd64 node reports

  no match for platform in manifest: not found

two steps later, which reads like a registry or IAM problem rather than
a build one.

Pin the build to linux/amd64, overridable via LOCUST_IMAGE_PLATFORM for
arm64 node pools (T2A, Axion).
@chuangw6
Chuang Wang (chuangw6) force-pushed the bench/locust-image-platform branch from 5d7d757 to 5fe1475 Compare July 29, 2026 00:20
@maxsmythe
Max Smythe (maxsmythe) merged commit 29a7ce4 into agent-substrate:main Jul 29, 2026
11 checks passed
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

Successfully merging this pull request may close these issues.

2 participants