Node.js GAE Standard - 11-40 second latencies for screenshot demo

92 views
Skip to first unread message

Kyle W

unread,
Jun 19, 2018, 8:53:49 AM6/19/18
to Google App Engine
I'm attempting to run the example on the official docs for Headless Chrome on GAE standard: https://cloud.google.com/appengine/docs/standard/nodejs/using-headless-chrome-with-puppeteer

Seeing very long latency (11-40 seconds) for any site to render and return the screenshot. Deploying exactly has described in the docs, no changes, and creating a new project (deployed in us-central). 

Checking to see if this is expected on GAE Standard or if I should be trying to optimize?


Katayoon (Cloud Platform Support)

unread,
Jun 20, 2018, 11:08:47 AM6/20/18
to Google App Engine

I tried the sample and see a latency around 11s through Trace List. Measuring the latency for puppeteer.launch, I noticed that the main latency comes from Puppeteer library.


I see that you have created duplicate thread about this question on Google Cloud Platform GitHub as well. So I recommend that you continue the thread on GitHub.


Kyle Williams

unread,
Jun 20, 2018, 12:12:17 PM6/20/18
to google-a...@googlegroups.com
Thank you. Yes, for some reason the latency is not present when deploying the same application on App Engine Flex. 

The load time for puppeteer.launch is 0ms vs 6000-9000ms on GAE Standard.

On Wed, Jun 20, 2018 at 11:09 AM 'Katayoon (Cloud Platform Support)' via Google App Engine <google-a...@googlegroups.com> wrote:

I tried the sample and see a latency around 11s through Trace List. Measuring the latency for puppeteer.launch, I noticed that the main latency comes from Puppeteer library.


I see that you have created duplicate thread about this question on Google Cloud Platform GitHub as well. So I recommend that you continue the thread on GitHub.


--
You received this message because you are subscribed to a topic in the Google Groups "Google App Engine" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-appengine/kW86XVLBwQc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
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/4bc35b27-19db-40d5-ab91-c7955d4303a4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Katayoon (Cloud Platform Support)

unread,
Jun 22, 2018, 10:51:29 AM6/22/18
to Google App Engine
It is also worthwhile to report this issue to the Issue Tracker.

Steren Giannini

unread,
Jun 22, 2018, 1:34:47 PM6/22/18
to Google App Engine
Hi,
Thanks for the feedback.
We are aware of latency issues with Headless Chrome on App Engine standard. We are looking for solutions internally.

Steren
Product Manager
Reply all
Reply to author
Forward
0 new messages