这么多/ _ah /热身请求

时间:2015-10-14 08:48:29

标签: java google-app-engine web

我的GAE应用程序托管在tickets-waiter.appspot.com。它工作得很好,直到一段时间。现在它在2小时内调用/_ah/warmup次请求超过10次。

I 2015-10-14 10:01:42.095  200       0 B  2.86 s I 10:01:44.745 I 10:01:44.752 I 10:01:44.942 I 10:01:44.942 I 10:01:44.946 I 10:01:44.958 /_ah/warmup
  0.1.0.3 - - [14/Oct/2015:00:01:42 -0700] "GET /_ah/warmup HTTP/1.1" 200 - - "-" "1.tickets-waiter.appspot.com" ms=2862 cpu_ms=3116 cpm_usd=0 instance=00c61b117c4a8572ec8f45546a378602d772d7 app_engine_release=1.9.27 trace_id=-
I 10:01:44.745 com.lana.ticket.LoadOnStartupServlet init: ! start
I 10:01:44.942 com.lana.ticket.LoadOnStartupServlet init: Stations dictonary with 18413 stations loaded successfully.
I 10:01:44.942 com.lana.ticket.LoadOnStartupServlet init: ! finish
I 10:01:44.946 com.google.apphosting.utils.servlet.WarmupServlet service: Executing warm-up request.
I 10:01:44.958 This request caused a new process to be started for your application, and thus caused your application code to be loaded for the first time. This request may thus take longer and use more CPU than a typical request for your application.
I 2015-10-14 10:02:29.915  200       0 B  2.67 s /_ah/warmup
I 2015-10-14 10:02:45.158  200       0 B   2.6 s /_ah/warmup
I 2015-10-14 10:03:04.455  200       0 B  2.72 s /_ah/warmup
I 2015-10-14 10:10:02.332  200       0 B  2.82 s /_ah/warmup
I 2015-10-14 10:10:24.146  200       0 B     3 s /_ah/warmup
I 2015-10-14 10:10:27.229  200       0 B  2.89 s /_ah/warmup
I 2015-10-14 10:17:09.938  200       0 B  2.42 s /_ah/warmup
I 2015-10-14 10:23:06.972  200       0 B   2.5 s /_ah/warmup
I 2015-10-14 10:33:57.736  200       0 B  2.79 s /_ah/warmup
I 2015-10-14 10:36:06.494  200       0 B  2.55 s /_ah/warmup
I 2015-10-14 10:41:58.852  200       0 B  2.72 s /_ah/warmup
I 2015-10-14 10:49:04.386  200       0 B  2.66 s /_ah/warmup
I 2015-10-14 10:50:01.784  200       0 B  2.82 s /_ah/warmup
I 2015-10-14 10:57:40.371  200       0 B   2.5 s /_ah/warmup
I 2015-10-14 11:02:03.471  200       0 B  2.78 s /_ah/warmup
I 2015-10-14 11:07:01.651  200       0 B  2.52 s /_ah/warmup

GAE始终创建我的应用程序的新实例。谁能解释为什么会这样?

以下是一些显示请求和延迟的图表。

Requests and latency graphs

我在appengine-web.xml中的缩放选项:

<automatic-scaling>
    <min-idle-instances>5</min-idle-instances>
    <max-idle-instances>automatic</max-idle-instances>
    <min-pending-latency>automatic</min-pending-latency>
    <max-pending-latency>30ms</max-pending-latency>
    <max-concurrent-requests>50</max-concurrent-requests>
</automatic-scaling>

感谢您的帮助!

0 个答案:

没有答案