-1

I decided to use App Engine Flexible. But I am getting this error:

The requested amount of instances has exceeded GCE's default quota. Please see https://cloud.google.com/compute/quotas for more information on GCE resources

I have a billing account connected and have $ 300 in credit.

My app.yaml:

runtime: nodejs
service: server
env: flex

network:
  session_affinity: true

handlers:
  - url: /.*
    secure: always
    redirect_http_response_code: 301
    script: auto

I've been trying to figure out how to fix this for a whole day now :( Does anyone understand why this is so?

adel norberg
  • 21
  • 1
  • 3

2 Answers2

2

As suggested by @mahboob, the answer for this question is as mentioned in this question

As per the GCP doc the parameter 'max_num_instances', The maximum number of instances in your project should be 8 by default where I can see you are using 15. I would like to suggest you to increase the quota limit for your project will solve the issue.

Puteri
  • 3,348
  • 4
  • 12
  • 27
1

If you just want to get through the deployment and don't care scaling, the following might help.

  1. try to delete all versions and instances as many as possible, and remember to repeat deletion multiple times because deletion might fail.
  2. in your app.yaml, limit the instance number to just 1 instance, and then try to deploy again.
manual_scaling:
  instances: 1
Iceberg
  • 2,744
  • 19
  • 19