google-app-engine


How to warm up app engine endpoint


I have appengine endpoint and trying to reduce latency on few first calls to newly created endpoint instance. Application is written in Java and endpoints are auto scaled.
To address this issue I configured idle instance, although even if instance is already created, first few calls routed to it consume some extra time. Following documentation I've implemented the custom servlet handling warm up requests and marked the EndpointsServlet as load on startup.
Inside the warm up servlet I've put code that initiates some commonly used services, load some data etc. Effect was almost impossible to notice.
After it I have implemented calls to methods exposed by the endpoint like that:
call("/_ah/api/teamly/v1/test/dummy")
It works for some cases (even most of them) and after calling few key methods instance is really ready to serve. The problem I'm facing now is that if I'm using auto scaling for some module I can't route the request to specific instance.
So the question is:
How should I properly warm up the endpoint instance to avoid load requests initiated from frontend.
You need to put a listener to /_ah/warmup and then make calls to any resources you want it to be warmed up. You can find detailed information at:
Configuring Warmup Requests to Improve Performance

Related Links

How do I get the path to the Cloud SDK directory using the gcloud command?
Cannot reach Endpoint method with cURL
Find the total instance hours in my Google Apps Engine
Cron Jobs on Google App Engine
Golang GAE, aestest.NewContect not working on local machine. Could not find python interpreter
Downloading my existing project in google cloud using Gcloud SDK
Google app engine css not found/deployed
CI for ASP.Net using Jenkins on Google Cloud
Can the GAE Servlet code be accessest by anyone
Is there a way of checking if a Web Application or Website using the Google App Engine?
google endpoints on flex app engine
Deploy to Google App Engine via a GitHub Repo
Using App Engine Datastore over MySQL for a CRM System
Geospatial Query at Google App Engine Datastore
how to put in the top as a ad My website in google?
Google Cloud Datastore vs Cloud SQL

Categories

HOME
shell
uml
go
hyperlink
ggplot2
flex
apache-spark-mllib
vscode-extensions
rendering
cublas
dojo
echo
nuget-package
code-coverage
angularfire2
vert.x
little-proxy
mel
mautic
azure-iot-hub
scsi
google-container-registry
imagemap
underscore.js
apktool
gp
failover
livelink
database-comparison
papaparse
sammy.js
projects-and-solutions
metaprogramming
news
wmp
congestion-control
android-checkbox
x++
plan-9
google-cse
page-replacement
aquamacs
static-cast
wpas
ngmaterial
quicktime
mach-o
lsyncd
objectscript
visual-studio-2008-sp1
pure-css
simplepie
reporting-services-2012
tinkerpop3
respondcms
kiosk
realsense
relativelayout
libvlc
zscript
typeconverter
ms-access-2000
zend-currency
post-commit-hook
build-script
reflector
grails-plugin-rabbitmq
mutual-authentication
radiant
gae-quotas
embedded-fonts
modular
script#
ui-select2
actiondispatch
argouml
dopostback
android-loadermanager
qtconcurrent
wcf-configuration
faye
boost-signals
cross-database
infobright
stress
google-maps-mobile
user-tracking
workflow-services
matlab-load
android-holo-everywhere
entitydatasource
rmdir
multiplatform
cruisecontrol.rb
pbcopy

Resources

Encrypt Message