Yugansh Marwah
Yugansh Marwah

Reputation: 49

Instances takes long time to spin up

I have an app engine application with some services being based on webapp2 framework and some service being based on endpoints-v2 framework.

The issue that i am facing over is that some time the OPTIONS request being sent from front end takes a huge amount of time get the response back which varies from 10 secs to 15 secs which is adding latency to my entire application. On digging down deeper into the issue and found the it is due to instance startup time that is costing us this much latency.

So my question is Does starting up an instance takes this much of time ? If not then how can i reduce my startup time for instances ? How the instances start so that i can optimise those situations in my code?

Upvotes: 0

Views: 726

Answers (1)

N.F.
N.F.

Reputation: 4182

Java instance takes a long time to spin up. You can hide the latency by configuring warmup request and min-idle-instances (see here) in your appengine-web.xml.

Upvotes: 1

Related Questions