Resident instance doesn't seem to work

2020-05-24 06:05发布

Following my previous question here:

Here's a screenshot of my billing-enable appengine console:

enter image description here

As you can see, I have a resident instance, but all requests are not routed to it, and instead a dynamic instance is loaded and gets all the traffic. Either I'm not getting the concept of Resident instances correctly, or this is ridiculous.

Can anyone help me understand what's going on here?

Thanks a lot!

1条回答
ゆ 、 Hurt°
2楼-- · 2020-05-24 06:32

As far as I know, resident instances are for times when no other instances (f. e. dynamic) are available (busy, no one started). They are the buffer between full utilization and new (dynamic) instances available. If every dynamic instance is at its limit (or no one available), the app engine needs some time to start new instances. In this time the resident instance is getting new requests so that your service is not getting busy for the users (and/or to decrease service response time). A resident instance with low usage will cost you as much as one with heavy usage.

查看更多
登录 后发表回答