Thanks for your response Vinny!

   1. I made a deliberate call to *_ah/warmup* which gives: "GET 
   /_ah/warmup HTTP/1.1" 200 0
   2. To *_ah/startup* which gives "GET /_ah/startup HTTP/1.1" 404 204
   
This is my first GAE project and I'm not a paid user yet so upgrading isn't 
currently an option nor increasing idle instances since not even a single 
instance is up yet. Cron isn't an option currently since the dataset has to 
be there to fulfill even the first request that comes in (but it can be 
later used when, let's say, I have to update the dataset regularly from the 
source).

I don't think that the warmup request solution may work for me because it 
says here 
<https://cloud.google.com/appengine/articles/deadlineexceedederrors>that: 
*Currently, 
the deadline for requests to frontend instances is 60 seconds. (Backend 
instances have no corresponding limit.) Every request, including warmup 
(request to /_ah/warmup) and loading requests ("loading_request=1" log 
header), is subject to this restriction. *Also see GAE issue reported here 
<https://code.google.com/p/googleappengine/issues/detail?id=7836>.

Do you have some suggestions? I'd be really glad to hear from you!

On Thursday, February 19, 2015 at 3:00:12 PM UTC+1, Syed Rizvi wrote:
>
> Hi,
> I have a RESTful service that gets XML data from an external URL, does 
> some work on it and serves it to its clients. The dataset is initialized in 
> the init() method and takes > 1 minutes but less than 2 to be initialized 
> and is naturally supposed to be there before the first client request comes 
> in. This works on the local machine properly, but not when deployed to GAE.
>
> I get the DeadlineExceededException even though I have warmup requests 
> enabled: 
> <warmup-requests-enabled>true</warmup-requests-enabled>
> The URL fetch is not the culprit here since it takes average 10 seconds to 
> complete the fetch.
>
> What exactly am I missing? What would be the right way to do it? Here's 
> what the log says:
>
> javax.servlet.ServletContext log: unavailable 
> com.google.apphosting.api.DeadlineExceededException: This request 
> (4865075fa7d7c4db) started at 2015/02/19 13:38:24.019 UTC and was still 
> executing at 2015/02/19 13:39:23.816 UTC.
>

-- 
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 http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/e2c3758a-f05c-4b0b-948a-288b2815bee7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to