非常短暂的空闲GAE实例

时间:2021-11-27 21:02:12

I'm perfectly fine with the fact that an idle instance dies after 15 minutes or so, and need to be loaded upon next request.

我很满意15分钟左右空闲实例死机,需要在下次请求时加载。

But I have an application that dies after less than 5 minutes of inactivity. this increases the chances of a load_request AND makes charges me for 15 minutes.

但我有一个应用程序在不活动不到5分钟后死亡。这会增加load_request的可能性,并向我收取15分钟的费用。

how can I debug this? why it dies so quickly. my other app dies after 15 minutes of inactivity as expected.

我该怎么调试呢?它死得这么快的原因。我的另一个应用程序按预期在15分钟不活动后死亡。

1 个解决方案

#1


0  

From GAE Pricing

来自GAE定价

Instances are charged for their uptime in addition to a 15-minute startup fee, the startup fee covers what it takes for App Engine to bring up and down the instance. So, if you have a dynamic instance only serving traffic for 5 minutes, you will pay for 5+15 minutes, or $0.08 / 60 * 20 = 2.6 cents. Additionally, if the instance stops and then starts again within a 15 minute window, the startup fee will only be charged once and the instance will be considered "up" for the time that passed. For example, if a dynamic instance is serving traffic for 5 min, is then down for 4 minutes and then serving traffic for 3 more minutes, you will pay for (5+4+3)+15 minutes, or $0.08 / 60 * 27 = 3.6 cents.

除了15分钟的启动费之外,实例还需要支付正常运行时间,启动费用包括App Engine启动和关闭实例所需的费用。因此,如果您的动态实例仅提供5分钟的流量,您将支付5 + 15分钟,或0.08 / 60 * 20 = 2.6美分。此外,如果实例停止然后在15分钟的窗口内再次启动,则启动费仅收取一次,并且实例将在通过的时间内被视为“向上”。例如,如果动态实例为流量提供5分钟,然后关闭4分钟,然后再提供流量3分钟,您将支付(5 + 4 + 3)+15分钟,或0.08 / 60 * 27 = 3.6美分。

This explains why you are charged and how much exactelly for your situation

这就解释了为什么你被指控以及为你的情况付出多少代价

#1


0  

From GAE Pricing

来自GAE定价

Instances are charged for their uptime in addition to a 15-minute startup fee, the startup fee covers what it takes for App Engine to bring up and down the instance. So, if you have a dynamic instance only serving traffic for 5 minutes, you will pay for 5+15 minutes, or $0.08 / 60 * 20 = 2.6 cents. Additionally, if the instance stops and then starts again within a 15 minute window, the startup fee will only be charged once and the instance will be considered "up" for the time that passed. For example, if a dynamic instance is serving traffic for 5 min, is then down for 4 minutes and then serving traffic for 3 more minutes, you will pay for (5+4+3)+15 minutes, or $0.08 / 60 * 27 = 3.6 cents.

除了15分钟的启动费之外,实例还需要支付正常运行时间,启动费用包括App Engine启动和关闭实例所需的费用。因此,如果您的动态实例仅提供5分钟的流量,您将支付5 + 15分钟,或0.08 / 60 * 20 = 2.6美分。此外,如果实例停止然后在15分钟的窗口内再次启动,则启动费仅收取一次,并且实例将在通过的时间内被视为“向上”。例如,如果动态实例为流量提供5分钟,然后关闭4分钟,然后再提供流量3分钟,您将支付(5 + 4 + 3)+15分钟,或0.08 / 60 * 27 = 3.6美分。

This explains why you are charged and how much exactelly for your situation

这就解释了为什么你被指控以及为你的情况付出多少代价