[google-appengine] Re: next.js app taking 15-25 seconds to load from “cold” on google app engine

2020-04-23 Thread 'Katayoon (Cloud Platform Support)' via Google App Engine
As explained in the Instance life cycle , the instance must first load any libraries and resources required to handle the request. However, we (support team) are not aware of the internal comm

Re: [google-appengine] Re: next.js app taking 15-25 seconds to load from “cold” on google app engine

2020-04-22 Thread Blaine Garrett
I am fairly certain that it does NOT install/build on warmup. In fact, I skip deploying my pages and src folder via .gcloudignore On Wed, Apr 22, 2020 at 7:12 AM 'Alex Fox' via Google App Engine < google-appengine@googlegroups.com> wrote: > Yes. > > I have implemented the warm up requests wh

[google-appengine] Re: next.js app taking 15-25 seconds to load from “cold” on google app engine

2020-04-22 Thread 'Alex Fox' via Google App Engine
Yes. I have implemented the warm up requests which has improved the performance greatly. So I understand, when a new instance is created what commands are run? Does it have to do a npm install and copy over resources, or is there more? Thanks! On Tuesday, April 21, 2020 at 7:12:24 PM UTC+1,

[google-appengine] Re: next.js app taking 15-25 seconds to load from “cold” on google app engine

2020-04-21 Thread 'Katayoon (Cloud Platform Support)' via Google App Engine
Hello, I would like to add that whenever you send a start request an instance is brought into existence and is initialized. So it needs some time to load the required libraries and resources to handle t

[google-appengine] Re: next.js app taking 15-25 seconds to load from “cold” on google app engine

2020-04-21 Thread 'Alex Fox' via Google App Engine
So I managed to improved the load times by enabling "serverless" in the next.js settings. This is enabled by default when deploying to ziet. I also added the /_ah/start warmup which essentially just keeps the instance alive. All getInitialProps are just returning some basic context and I'm using

[google-appengine] Re: next.js app taking 15-25 seconds to load from “cold” on google app engine

2020-04-20 Thread Blaine Garrett
That seems a bit odd. I have a next.js app on Standard and goes from cold start to content paint in approx 5 seconds with data fetching on the server. What instance type and size are you using? Does your getInitialProps make any REST calls, access a database, etc? If so, are those cold start