Some deployments to App Hosting from Firebase Studio fail with the error:
“Invalid value specified for cpu. For the specified value, maxScale may not exceed
<number>
”.
To see if this is the reason your rollout failed, check the logs for your App Hosting backend in Cloud Run.
If you’re affected by this error, set the maxInstances
config for your backend to a number equal to or lower than the number in the error message:
- Create an
apphosting.yaml
file in the root of your project. - Add the following to
apphosting.yaml
:
# Settings to manage and configure a Firebase App Hosting backend.
# https://firebase.google.com/docs/app-hosting/configure
runConfig:
# Increase this value if you'd like to automatically spin up
# more instances in response to increased traffic.
maxInstances: 1
shout-out to @Adenilson_Ribeiro for proposing this fix in another thread.