Search code examples
dockergoogle-app-enginegoogle-cloud-platformvirtual-machinemux-video

Is there a way to make app engine turn off when no traffic


I am currently using App Engine in Google Cloud with Docker to handle Mux Video requests. The problem is I am being charged over $40 when the app is in development and there is virtually no traffic on the app. Is there a way to turn off the App Engine when no requests are being sent so the hours of operation are less or this not possible with app Engine? I am quite new to App Engine.

runtime: custom
env: flex

manual_scaling:
  instances: 1
resources:
  cpu: 1
  memory_gb: 0.5
  disk_size_gb: 10

Solution

  • No, you can't scale to 0 the Flex instances. It's the main problem of the flex instances.

    You have to replace the current service by a APp Engine standard service version that can scale to 0 and stop paying.


    If your application doesn't run background processes, and the request handling doesn't take more than 60 minutes, I strongly recommend you to have a look to Cloud Run