GAE执行个体的时间比实际时间多得多 [英] GAE instance hours a lot more than real hours

查看:70
本文介绍了GAE执行个体的时间比实际时间多得多的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的Java应用程序在标准Google App Engine(GAE)上运行,并且配置为具有1个最小实例和1个最大实例.它还配置为具有1个最小空闲实例,该实例允许单个实例不间断运行.我运行了一个计时器1个小时,然后检查了多少实例小时已过去.表示略超过2小时.当只有一个实例在运行时,这怎么可能?

My Java app runs on the Standard Google App Engine (GAE) and is configured to have 1 minimum instance and 1 maximum instance. It is also configured to have 1 minimum idle instance which allows the single instance to run non-stop. I ran a timer for 1 hour and then checked how many instance hours have elapsed. It indicates slightly over 2 hours. How is this possible when only a single instance is running?

推荐答案

在您的配置中,您实际上应该正在运行2个实例:

From your configuration you should actually be having 2 instances running:

  • 一个常驻实例,因为最低的 idle 实例配置.当GAE旋转必要的动态实例时,这仅服务于突然的瞬时流量高峰,请参阅 GAE/J上的min-idle-instance
  • one resident instance, due to the minimum idle instance configuration. This serves only sudden transient traffic peaks while GAE spins up the necessary dynamic instances, see min-idle-instance on GAE/J and Why do more requests go to new (dynamic) instances than to resident instance?
  • one dynamic instance, due to the min/max 1 instance configs, handling the regular traffic

注意:实例类也很重要(但在这里可能不是您的情况).来自标准环境实例:

Note: the instance class also matters (but probably it's not your case here). From Standard environment instances:

重要:按实例小时数计费时,您在计费订单项中将看不到任何实例类.相反,您将 查看实例小时数的适当倍数.例如,如果您 使用F4实例一小时,您不会看到列出的"F4",但是 请按F1费率查看四个实例小时的计费.

Important: When you are billed for instance hours, you will not see any instance classes in your billing line items. Instead, you will see the appropriate multiple of instance hours. For example, if you use an F4 instance for one hour, you do not see "F4" listed, but you see billing for four instance hours at the F1 rate.

这篇关于GAE执行个体的时间比实际时间多得多的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆