代码之家  ›  专栏  ›  技术社区  ›  Rahul

Google App Engine RemoteApiServlet/remote\u api处理程序错误

  •  1
  • Rahul  · 技术社区  · 14 年前

    RemoteApiServlet 以及 remote_api 处理程序。

    在使用批量加载程序批量加载大量数据时,我开始看到随机的HTTP 500错误,详细信息如下(在日志文件中):

    Request was aborted after waiting too long to attempt to service your request.
    This may happen sporadically when the App Engine serving cluster is under
    unexpectedly high or uneven load. If you see this message frequently, please
    contact the App Engine team.
    

    谷歌应用引擎论坛中的相关线程位于 http://groups.google.com/group/google-appengine-python/browse_thread/thread/bee08a70d9fd89cd

    1 回复  |  直到 8 年前
        1
  •  1
  •   Nick Johnson    14 年前

    这不是特定于远程api的。现在的情况是,你的应用程序收到了很多需要很长时间才能执行的请求,如果请求延迟太高,appengine将不会增加你的应用程序运行的实例数。结果,请求被排队等待,直到有处理程序可以为它们提供服务;如果没有可用的处理程序,则返回500并记录此消息。

    只需降低批量加载数据的速率,或减小批处理大小,以便远程api请求执行得更快。