Spring Boot app fails to deploy to GAE flex (MVN)

1,838 views
Skip to first unread message

Daniel Blazquez

unread,
Oct 11, 2018, 8:52:51 AM10/11/18
to Google App Engine
Hi,

my simple Spring Boot app works fine locally, and it worked during months deployed to Google Cloud. But today it fails to deploy about 2 out of 3 attempts  (after around 15 minutes stuck in this part)

[INFO] GCLOUD: Updating service [default] (this may take several minutes)...
GCLOUD: ERROR: (gcloud.app.deploy) Error Response: [4] Your deployment has failed to become healthy in the allotted time and therefore was rolled back. If you believe this was an error, try adjusting the 'app_start_timeout_sec' setting in the 'readiness_check' section.

Things I tried:
  1. Creating a new Cloud project
  2. Updating Cloud: gcloud components update
  3. Disable health checks gcloud app update --no-split-health-check
Related:
  • The times I get it running, app often becomes highly unresponsive, throwing multiple 502 errors, and CPU reaching 100%

Things I suspect could be wrong:
  1. Something about health checks? In the logs I see the app starting, but for some reason no traffic can reach it
  2. I have tried looking in the logs but I don't see anything helpful. Any particular logs I should be looking at?
  3. Should I be worried about dependencies in my Maven file, if I know I can run locally?

My app.yaml:

runtime: java
env: flex

runtime_config:  # Optional
  jdk: openjdk8

manual_scaling:
  instances: 1
Message has been deleted

Daniel Blazquez

unread,
Oct 11, 2018, 1:13:57 PM10/11/18
to Google App Engine
SOLVED by manually increasing memory allocation [why did not GAE scale this resource?!?]

resources:
  cpu: 1
  memory_gb: 2
  disk_size_gb: 10

Yasser Karout (Cloud Platform Support)

unread,
Oct 15, 2018, 5:05:55 PM10/15/18
to Google App Engine
Hello,

Initially, you didn’t specify resources section in your app.yaml configuration file, and the scaling was set to manual. So the default values [1] have been used for the instance. Since App Engine scales up basing on the number of instances but not on instance types, it seem that your application suffered from a lack of memory.

You may find these articles[2,3] helpful. 



Reply all
Reply to author
Forward
0 new messages