Skip to content

docs(examples): add working autoscaler-wasm example configuration#4345

Merged
markmandel merged 2 commits intoagones-dev:mainfrom
markmandel:examples/wasm-fleet
Nov 26, 2025
Merged

docs(examples): add working autoscaler-wasm example configuration#4345
markmandel merged 2 commits intoagones-dev:mainfrom
markmandel:examples/wasm-fleet

Conversation

@markmandel
Copy link
Copy Markdown
Collaborator

What type of PR is this?

Uncomment only one /kind <> line, press enter to put that in a new line, and remove leading whitespace from that line:

/kind breaking
/kind bug
/kind cleanup
/kind documentation

/kind feature

/kind hotfix
/kind release

What this PR does / Why we need it:

  • Added README.md with comprehensive documentation including:
  • Added autoscaler.yaml example configuration for FleetAutoscaler
  • Fixed buffer_size config value format (string instead of integer) in wasmfleetautoscaler.yaml

Which issue(s) this PR fixes:

Work on #4080

Special notes for your reviewer:

Once this is up, I can write the quickstart guide, and that will close out this feature!

- Added README.md with comprehensive documentation including:
- Added autoscaler.yaml example configuration for FleetAutoscaler
- Fixed buffer_size config value format (string instead of integer)
  in wasmfleetautoscaler.yaml
@markmandel markmandel added the area/examples Examples. Usually found in the `examples` directory label Nov 23, 2025
@github-actions github-actions bot added kind/feature New features for Agones size/M labels Nov 23, 2025
@@ -1,33 +1,100 @@
# Autoscaler WASM example
# Autoscaler WASM Example
Copy link
Copy Markdown
Collaborator Author

@markmandel markmandel Nov 23, 2025

Choose a reason for hiding this comment

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

I didn't realise I had a README already. Oh well - this updates it! 😄

@agones-bot
Copy link
Copy Markdown
Collaborator

Build Failed 😭

Build Id: 869a371f-e42b-4d0f-98b8-a4b73adf071e

Status: FAILURE

To get permission to view the Cloud Build view, join the agones-discuss Google Group.

@markmandel
Copy link
Copy Markdown
Collaborator Author

Release "agones" does not exist. Installing it now.
Error: release agones failed, and has been uninstalled due to atomic being set: services "agones-ping-udp-service" not found
make: *** [Makefile:450: install] Error 1

🤔

/gcbrun

@agones-bot
Copy link
Copy Markdown
Collaborator

Build Succeeded 🥳

Build Id: 8b8d7fd6-31ee-4be9-ac82-7924da201411

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

git fetch https://github.com/googleforgames/agones.git pull/4345/head:pr_4345 && git checkout pr_4345
helm install agones ./install/helm/agones --namespace agones-system --set agones.image.registry=us-docker.pkg.dev/agones-images/ci --set agones.image.tag=1.54.0-dev-6b2d2db

- scale: Ensures there is a buffer of replicas available for the fleet. The buffer size is configurable via the buffer_size config entry and defaults to 5.
- scaleNone: A no-op example that always returns the current replica count.

## Prerequisites
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.

Pulled this out, as I'll cover it in the quickstart.

# Config values to pass to the wasm program on startup
config:
buffer_size: 10
buffer_size: "10"
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.

sneak in small fix.

Copy link
Copy Markdown
Collaborator

@lacroixthomas lacroixthomas left a comment

Choose a reason for hiding this comment

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

LGTM !

@markmandel markmandel enabled auto-merge (squash) November 25, 2025 18:02
@agones-bot
Copy link
Copy Markdown
Collaborator

Build Failed 😭

Build Id: 241b4d61-0301-4d37-931c-bd8507d33fbb

Status: FAILURE

To get permission to view the Cloud Build view, join the agones-discuss Google Group.

@markmandel
Copy link
Copy Markdown
Collaborator Author

weird

Error: failed to load modules: failed to download modules: failed to execute 'go [mod download -modcacherw]': failed to execute binary "go" with args [mod download -modcacherw]: go: gopkg.in/yaml.v2@v2.4.0: unrecognized import path "gopkg.in/yaml.v2": https fetch: Get "https://gopkg.in/yaml.v2?go-get=1": net/http: TLS handshake timeout

/gcbrun

@agones-bot
Copy link
Copy Markdown
Collaborator

Build Failed 😭

Build Id: 9222fa4a-93bb-4345-8ae1-ee7e82cb56e4

Status: FAILURE

To get permission to view the Cloud Build view, join the agones-discuss Google Group.

@markmandel
Copy link
Copy Markdown
Collaborator Author

/gcbrun

@agones-bot
Copy link
Copy Markdown
Collaborator

Build Succeeded 🥳

Build Id: 5c19d46b-24d3-4d6c-95c7-db01c8669577

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

git fetch https://github.com/googleforgames/agones.git pull/4345/head:pr_4345 && git checkout pr_4345
helm install agones ./install/helm/agones --namespace agones-system --set agones.image.registry=us-docker.pkg.dev/agones-images/ci --set agones.image.tag=1.54.0-dev-32a8216

@markmandel markmandel merged commit 0007c69 into agones-dev:main Nov 26, 2025
4 checks passed
@markmandel markmandel deleted the examples/wasm-fleet branch November 26, 2025 15:55
mnthe pushed a commit to mnthe/agones that referenced this pull request Mar 23, 2026
…ones-dev#4345)

- Added README.md with comprehensive documentation including:
- Added autoscaler.yaml example configuration for FleetAutoscaler
- Fixed buffer_size config value format (string instead of integer)
  in wasmfleetautoscaler.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/examples Examples. Usually found in the `examples` directory kind/feature New features for Agones size/M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants