I am experiencing deploy times of 9 minutes, for every deploy, without code changes. All I have done is following a hello world tutorial for a Spring Boot app with Maven.
I have searched without finding a solution, unfortunately. I think people get a bad first impression of the App Engine when deploy takes this long. See attached logs. On Thursday, November 16, 2017 at 12:59:05 AM UTC+1, Daniel Sirota wrote: > > Happenned to me on the AppEngine Standard. Cleaning the > staging.PROJECTNAME bucket on GCS fixed it. > It appears the folder gets bigger and bigger and it really slows the > deploy. > > On Nov 16, 2017 01:35, <[email protected] <javascript:>> wrote: > >> From limited testing with Java Flexible, it happens with >> >> server: jetty9 >> >> >> Significantly less issues with standard Java, though we want to user the >> jetty built in container. >> >> What we see is that initial deployment is OK, and every consecutive >> deployment slows down exponentially, until above half an hour it does not >> happen at all (or at least we consider it dead). >> >> I assume there is some problem of GAE tracking the instances. >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Google App Engine" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> Visit this group at https://groups.google.com/group/google-appengine. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/google-appengine/e20829dd-2d13-4453-bea9-6dbb3eed771b%40googlegroups.com >> >> <https://groups.google.com/d/msgid/google-appengine/e20829dd-2d13-4453-bea9-6dbb3eed771b%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/e0e0dde1-de29-4770-bb3c-cd67c41b71aa%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
$ time mvn appengine:deploy [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building helloworld-springboot 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] >>> appengine-maven-plugin:1.3.2:deploy (default-cli) > package @ helloworld-springboot >>> [INFO] [INFO] --- jacoco-maven-plugin:0.7.9:prepare-agent (default) @ helloworld-springboot --- [INFO] argLine set to -javaagent:[deleted from log] [INFO] [INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ helloworld-springboot --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] [INFO] --- maven-compiler-plugin:3.6.1:compile (default-compile) @ helloworld-springboot --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- versions-maven-plugin:2.3:display-dependency-updates (default) @ helloworld-springboot --- [INFO] artifact com.jcabi:jcabi-matchers: checking for updates from central [INFO] artifact junit:junit: checking for updates from central [INFO] artifact org.mockito:mockito-core: checking for updates from central [INFO] No dependencies in Dependency Management have newer versions. [INFO] [INFO] artifact org.springframework.boot:spring-boot-starter-test: checking for updates from central [INFO] artifact org.springframework.boot:spring-boot-starter-web: checking for updates from central [INFO] No dependencies in Dependencies have newer versions. [INFO] [deleted from log] [INFO] [INFO] --- versions-maven-plugin:2.3:display-plugin-updates (default) @ helloworld-springboot --- [INFO] [INFO] The following plugin updates are available: [INFO] org.springframework.boot:spring-boot-maven-plugin 1.5.7.RELEASE -> 1.5.8.RELEASE [INFO] [WARNING] The following plugins do not have their version specified: [WARNING] maven-jar-plugin .......................... (from super-pom) 3.0.2 [INFO] [INFO] Project inherits minimum Maven version as: 3.5.0 [INFO] Plugins require minimum Maven version of: 3.0 [INFO] Note: the super-pom from Maven 3.3.9 defines some of the plugin [INFO] versions and may be influencing the plugins required minimum Maven [INFO] version. [INFO] [INFO] No plugins require a newer version of Maven than specified by the pom. ... [INFO] --- spring-boot-maven-plugin:1.5.7.RELEASE:repackage (default) @ helloworld-springboot --- [INFO] [INFO] <<< appengine-maven-plugin:1.3.2:deploy (default-cli) < package @ helloworld-springboot <<< [INFO] [INFO] --- appengine-maven-plugin:1.3.2:deploy (default-cli) @ helloworld-springboot --- [INFO] Deleting the staging directory: [deleted from log]/helloworld-springboot/target/appengine-staging [INFO] Staging the application to: [deleted from log]/helloworld-springboot/target/appengine-staging [INFO] Detected App Engine flexible environment application. Nov 19, 2017 2:56:10 PM com.google.cloud.tools.appengine.cloudsdk.CloudSdk logCommand INFO: submitting command: /mnt/hd2/app/google-cloud-sdk/bin/gcloud app deploy [INFO] GCLOUD: Services to deploy: [INFO] GCLOUD: [INFO] GCLOUD: descriptor: [[deleted from log]helloworld-springboot/target/appengine-staging/app.yaml] [INFO] GCLOUD: source: [[deleted from log]helloworld-springboot/target/appengine-staging] [INFO] GCLOUD: target project: [xxxxxxxxx-yyyyyyy] [INFO] GCLOUD: target service: [default] [INFO] GCLOUD: target version: [20171119t145612] [INFO] GCLOUD: target url: [https://xxxxxxxxx-yyyyyyy.appspot.com] [INFO] GCLOUD: [INFO] GCLOUD: [INFO] GCLOUD: Beginning deployment of service [default]... [INFO] GCLOUD: Building and pushing image for service [default] [INFO] GCLOUD: Started cloud build [84653679-d3d9-4b67-b559-496c888a8c48]. [INFO] GCLOUD: To see logs in the Cloud Console: https://console.cloud.google.com/gcr/builds/84653679-d3d9-4b67-b559-496c888a8c48?project=xxxxxxxxx-yyyyyyy [INFO] GCLOUD: ----------------------------------------------------------------------------------------------- REMOTE BUILD OUTPUT ----------------------------------------------------------------------------------------------- [INFO] GCLOUD: starting build "84653679-d3d9-4b67-b559-496c888a8c48" [INFO] GCLOUD: [INFO] GCLOUD: FETCHSOURCE [INFO] GCLOUD: Fetching storage object: gs://staging.xxxxxxxxx-yyyyyyy.appspot.com/eu.gcr.io/xxxxxxxxx-yyyyyyy/appengine/default.20171119t145612:latest#1511099778905978 [INFO] GCLOUD: Copying gs://staging.xxxxxxxxx-yyyyyyy.appspot.com/eu.gcr.io/xxxxxxxxx-yyyyyyy/appengine/default.20171119t145612:latest#1511099778905978... [INFO] GCLOUD: / [0 files][ 0.0 B/ 12.3 MiB] [INFO] GCLOUD: / [0 files][264.0 KiB/ 12.3 MiB] [INFO] GCLOUD: - [INFO] GCLOUD: - [0 files][ 4.1 MiB/ 12.3 MiB] [INFO] GCLOUD: \ [INFO] GCLOUD: \ [1 files][ 12.3 MiB/ 12.3 MiB] [INFO] GCLOUD: Operation completed over 1 objects/12.3 MiB. [INFO] GCLOUD: BUILD [INFO] GCLOUD: Step #0: Pulling image: gcr.io/gcp-runtimes/java/runtime-builder@sha256:6cb22584f4a0267886a4b24c82d18753556691a22aaa3228b03d2f93e560cbc3 [INFO] GCLOUD: Step #0: sha256:6cb22584f4a0267886a4b24c82d18753556691a22aaa3228b03d2f93e560cbc3: Pulling from gcp-runtimes/java/runtime-builder [INFO] GCLOUD: Step #0: Digest: sha256:6cb22584f4a0267886a4b24c82d18753556691a22aaa3228b03d2f93e560cbc3 [INFO] GCLOUD: Step #0: Status: Downloaded newer image for gcr.io/gcp-runtimes/java/runtime-builder@sha256:6cb22584f4a0267886a4b24c82d18753556691a22aaa3228b03d2f93e560cbc3 [INFO] GCLOUD: Starting Step #0 [INFO] GCLOUD: Step #0: INFO - Identified Java artifact for deployment Artifact{type=JAR, path=/workspace/helloworld-springboot-0.0.1-SNAPSHOT.jar} [INFO] GCLOUD: Step #0: INFO - Using base image 'gcr.io/google-appengine/openjdk@sha256:51c386f9b138f3255f50e8f1ba83fd96fce0607159c8be5537071d0f682ad9ed' for JAR artifact [INFO] GCLOUD: Step #0: INFO - Generating Dockerfile at /workspace/Dockerfile [INFO] GCLOUD: Step #0: INFO - Generating .dockerignore file at /workspace/.dockerignore [INFO] GCLOUD: Finished Step #0 [INFO] GCLOUD: Step #1: Pulling image: gcr.io/cloud-builders/docker@sha256:d90188cb6e64c7b024ddc05f04dc1997ec26fcf2b66b2e2c125d44f8e6181c89 [INFO] GCLOUD: Step #1: sha256:d90188cb6e64c7b024ddc05f04dc1997ec26fcf2b66b2e2c125d44f8e6181c89: Pulling from cloud-builders/docker [INFO] GCLOUD: Step #1: ae79f2514705: Already exists [INFO] GCLOUD: Step #1: 5ad56d5fc149: Pulling fs layer [INFO] GCLOUD: Step #1: 170e558760e8: Pulling fs layer [INFO] GCLOUD: Step #1: 395460e233f5: Pulling fs layer [INFO] GCLOUD: Step #1: 6f01dc62e444: Pulling fs layer [INFO] GCLOUD: Step #1: 4c9b34d54453: Pulling fs layer [INFO] GCLOUD: Step #1: 718941ac4c78: Pulling fs layer [INFO] GCLOUD: Step #1: 6f01dc62e444: Waiting [INFO] GCLOUD: Step #1: 4c9b34d54453: Waiting [INFO] GCLOUD: Step #1: 718941ac4c78: Waiting [INFO] GCLOUD: Step #1: 395460e233f5: Verifying Checksum [INFO] GCLOUD: Step #1: 395460e233f5: Download complete [INFO] GCLOUD: Step #1: 5ad56d5fc149: Verifying Checksum [INFO] GCLOUD: Step #1: 5ad56d5fc149: Download complete [INFO] GCLOUD: Step #1: 170e558760e8: Verifying Checksum [INFO] GCLOUD: Step #1: 170e558760e8: Download complete [INFO] GCLOUD: Step #1: 5ad56d5fc149: Pull complete [INFO] GCLOUD: Step #1: 6f01dc62e444: Verifying Checksum [INFO] GCLOUD: Step #1: 6f01dc62e444: Download complete [INFO] GCLOUD: Step #1: 170e558760e8: Pull complete [INFO] GCLOUD: Step #1: 395460e233f5: Pull complete [INFO] GCLOUD: Step #1: 6f01dc62e444: Pull complete [INFO] GCLOUD: Step #1: 718941ac4c78: Verifying Checksum [INFO] GCLOUD: Step #1: 718941ac4c78: Download complete [INFO] GCLOUD: Step #1: 4c9b34d54453: Verifying Checksum [INFO] GCLOUD: Step #1: 4c9b34d54453: Download complete [INFO] GCLOUD: Step #1: 4c9b34d54453: Pull complete [INFO] GCLOUD: Step #1: 718941ac4c78: Pull complete [INFO] GCLOUD: Step #1: Digest: sha256:d90188cb6e64c7b024ddc05f04dc1997ec26fcf2b66b2e2c125d44f8e6181c89 [INFO] GCLOUD: Step #1: Status: Downloaded newer image for gcr.io/cloud-builders/docker@sha256:d90188cb6e64c7b024ddc05f04dc1997ec26fcf2b66b2e2c125d44f8e6181c89 [INFO] GCLOUD: Starting Step #1 [INFO] GCLOUD: Step #1: Sending build context to Docker daemon 14.5MB [INFO] GCLOUD: [INFO] GCLOUD: Step #1: Step 1/2 : FROM gcr.io/google-appengine/openjdk@sha256:51c386f9b138f3255f50e8f1ba83fd96fce0607159c8be5537071d0f682ad9ed [INFO] GCLOUD: Step #1: sha256:51c386f9b138f3255f50e8f1ba83fd96fce0607159c8be5537071d0f682ad9ed: Pulling from google-appengine/openjdk [INFO] GCLOUD: Step #1: Digest: sha256:51c386f9b138f3255f50e8f1ba83fd96fce0607159c8be5537071d0f682ad9ed [INFO] GCLOUD: Step #1: Status: Downloaded newer image for gcr.io/google-appengine/openjdk@sha256:51c386f9b138f3255f50e8f1ba83fd96fce0607159c8be5537071d0f682ad9ed [INFO] GCLOUD: Step #1: ---> d4e47c38765c [INFO] GCLOUD: Step #1: Step 2/2 : COPY ./helloworld-springboot-0.0.1-SNAPSHOT.jar $APP_DESTINATION [INFO] GCLOUD: Step #1: ---> fee80cd79570 [INFO] GCLOUD: Step #1: Removing intermediate container 6ef54a6fbf50 [INFO] GCLOUD: Step #1: Successfully built fee80cd79570 [INFO] GCLOUD: Step #1: Successfully tagged eu.gcr.io/xxxxxxxxx-yyyyyyy/appengine/default.20171119t145612:latest [INFO] GCLOUD: Finished Step #1 [INFO] GCLOUD: PUSH [INFO] GCLOUD: Pushing eu.gcr.io/xxxxxxxxx-yyyyyyy/appengine/default.20171119t145612:latest [INFO] GCLOUD: The push refers to a repository [eu.gcr.io/xxxxxxxxx-yyyyyyy/appengine/default.20171119t145612] [INFO] GCLOUD: 1a4281a3a8cd: Preparing [INFO] GCLOUD: 1e73997959b4: Preparing [INFO] GCLOUD: 269898bd648c: Preparing [INFO] GCLOUD: 8466a968f110: Preparing [INFO] GCLOUD: 8261521a4d83: Preparing [INFO] GCLOUD: fe63816dcc7d: Preparing [INFO] GCLOUD: ac0f931ff2d8: Preparing [INFO] GCLOUD: 5a2c5095cca1: Preparing [INFO] GCLOUD: fe63816dcc7d: Waiting [INFO] GCLOUD: ac0f931ff2d8: Waiting [INFO] GCLOUD: 5a2c5095cca1: Waiting [INFO] GCLOUD: 8466a968f110: Layer already exists [INFO] GCLOUD: 269898bd648c: Layer already exists [INFO] GCLOUD: 8261521a4d83: Layer already exists [INFO] GCLOUD: 1e73997959b4: Layer already exists [INFO] GCLOUD: 5a2c5095cca1: Layer already exists [INFO] GCLOUD: ac0f931ff2d8: Layer already exists [INFO] GCLOUD: fe63816dcc7d: Layer already exists [INFO] GCLOUD: 1a4281a3a8cd: Pushed [INFO] GCLOUD: latest: digest: sha256:9dc7241a0b6c50c354dd002301542f659a15e42dc15f83d925be884437701f0f size: 1998 [INFO] GCLOUD: DONE [INFO] GCLOUD: ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- [INFO] GCLOUD: [INFO] GCLOUD: Updating service [default]... [INFO] GCLOUD: ......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................done. [INFO] GCLOUD: Updating service [default]... [INFO] GCLOUD: Waiting for operation [apps/xxxxxxxxx-yyyyyyy/operations/64720813-353b-4082-8f88-f4f30d64d3b6] to complete... [INFO] GCLOUD: ..............done. [INFO] GCLOUD: Stopping version [xxxxxxxxx-yyyyyyy/default/20171111t092102]. [INFO] GCLOUD: .Sent request to stop version [xxxxxxxxx-yyyyyyy/default/20171111t092102]. This operation may take some time to complete. If you would like to verify that it succeeded, run: [INFO] GCLOUD: $ gcloud app versions describe -s default 20171111t092102 [INFO] GCLOUD: until it shows that the version has stopped. [INFO] GCLOUD: done. [INFO] GCLOUD: Deployed service [default] to [https://xxxxxxxxx-yyyyyyy.appspot.com] [INFO] GCLOUD: [INFO] GCLOUD: You can stream logs from the command line by running: [INFO] GCLOUD: $ gcloud app logs tail -s default [INFO] GCLOUD: [INFO] GCLOUD: To view your application in the web browser run: [INFO] GCLOUD: $ gcloud app browse [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 08:57 min [INFO] Finished at: 2017-11-19T15:05:03+01:00 [INFO] Final Memory: 34M/277M [INFO] ------------------------------------------------------------------------ real 8m58.766s user 0m11.656s sys 0m1.160s
