自动缩放的 http 请求超时与 flex 和标准应用程序引擎之间有什么区别

Whats is the difference between http request timeout of Automatic Scaling vs flex & standard app engine

我正在使用 Google App Engine 构建微服务,现在我们大部分时间都遇到 DeadlineException 问题,因为我们的服务在 60 秒内没有响应,因为它正在执行许多复杂的 pdf 任务文件解析 n all...

现在通过查看 table https://cloud.google.com/appengine/docs/the-appengine-environments"Comparing High Level Features" -> 最大请求超时下的比较,可以简单地弄清楚它因为我使用的是标准 App Engine,它的超时时间是 60 秒,如果我的请求需要更多时间来响应,那么我可以切换到 Flex App Engine 模型。

话说我遇到了另一个比较table https://cloud.google.com/appengine/docs/standard/java/how-instances-are-managed"This table compares the performance features of the three scaling types:" -> 最大请求超时下,它也有不同的截止时间,具体取决于您选择的缩放类型。

  1. 现在我不明白这个截止日期是什么时候?
  2. 我的意思是,如果我选择 Flex App Engine 然后选择自动缩放,那么我的 http 请求时间将是 60 分钟或 60 秒?

您 post 中的第二个文档指针适用于标准环境,不适用于灵活环境(参见 ). The equivalent page for the flexible environment is How Instances are Managed

因此,如果您选择灵活环境,第一个参考中指定的截止日期是适用的。

现在 GAE Standard 与 GAE Flex 关于超时的场景如下:

GAE Standard:

  • 自动缩放:60 秒
  • 手动缩放:24 小时
  • 任务:自动缩放 10 分钟,手动缩放 24 小时

GAE Flex:

  • 自动缩放:60 分钟
  • 手动缩放:60 分钟
  • Tasks: 60 分钟