I have deployed a ReactJs project on GCP App Engine. The app.yaml
file is configured to handle the route to serve static files as well as warmup requests. However, in the logs, I see that warmup requests are sent almost every second while our other services receive them when the App Engine instance is going idle.
app.yaml
runtime: nodejs16
handlers:
- url: /(.*\..+)$
static_files: build/\1
upload: build/(.*\..+)$
- url: /.*
secure: always
redirect_http_response_code: 301
static_files: build/index.html
upload: build/index.html
- url: /_ah/warmup
static_files: build/index.html
upload: build/index.html
inbound_services:
- warmup
automatic_scaling:
min_instances: 1
Here are the GCP logs:
How to fix this issue and make GCP send warmup only when the instance is going idle?