You are seeing these errors because your requests are timing out. You can 
see from the picture that your requests are taking over 20 seconds to 
respond. If you click those errors in the Log Viewer you will most likely 
see the error "Request was aborted after waiting too long to attempt to 
service your request.". 

This error is caused by not having enough available instances to handle the 
incoming traffic. If your instances are too busy, new requests are forced 
to wait in a pending queue. If they wait too long they will be cancelled 
with this error as explained in the documentation 
<https://cloud.google.com/appengine/articles/deadlineexceedederrors#Performance_Settings>.
 
It is therefore recommended to change your scaling settings (in app.yaml 
<https://cloud.google.com/appengine/docs/standard/python/config/appref#scaling_elements>or
 
appengine-web.xml 
<https://cloud.google.com/appengine/docs/standard/java/config/appref#scaling_elements>)
 
to allow for more instances (as I assume you might be using manual scaling 
here where auto scaling is recommended), and to allow for concurrent 
requests. 

Your application code should also be optimized to respond quickly in order 
to allow for more requests to be handled on a smaller amount of instances. 
Ideally you should shard your code into different services 
<https://cloud.google.com/appengine/docs/standard/java/microservices-on-app-engine>
 
(which use different instances), and send long running tasks to backend 
instances from frontend instances that respond quickly with futures to the 
requester (which the requester can then use to poll on the status of the 
long running task they started, e.g using Pub/Sub 
<https://cloud.google.com/solutions/using-cloud-pub-sub-long-running-tasks>
).  

- Note that Google Groups is reserved for general product discussions and 
not for technical support. For further technical support it is recommended 
to post your detailed questions <https://stackoverflow.com/help/how-to-ask>to 
Stack Overflow <https://cloud.google.com/support/docs/stackexchange> using 
the supported Cloud tags. 

-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@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/9d20d6ce-712d-4a24-b92d-75c24bba096e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • [google-appengine]... DOBODY GLOBAL
    • [google-appen... 'Jordan (Cloud Platform Support)' via Google App Engine

Reply via email to