0

一项服务在 Cloud Run 中运行了过去 12 小时,但在第一小时之后没有发送任何请求。我读到在常见问题解答中没有可预测的时间范围,在此之前将服务缩放为零,但我假设 10 小时后,绿色刻度线应该与 Cloud Run 仪表板中的服务名称对应,因为它也显示最后一次请求为 0 10个小时 ?

服务位于新的自定义域后面。

从日志中,我可以间歇性地看到以下请求 - 似乎爬虫正在发出一些请求 - 是服务没有扩展到零的原因吗?

2019-05-04T01:57:10.661674ZGET200 764 B 4 ms Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)  /_next/static/CobVVFSUIaptTFTVGYam1/pages/index.js
2019-05-04T01:57:15.349339ZGET200 22.46 KB 6 ms Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)  /_next/static/runtime/main-fd73dbd6f398b7b886ec.js
2019-05-04T01:57:15.490689ZGET200 1.83 KB 5 ms Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)  /_next/static/runtime/webpack-a79426b5e11f0ba5879d.js
2019-05-04T01:57:19.993381ZGET200 2.8 KB 4 ms Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)  /_next/static/CobVVFSUIaptTFTVGYam1/pages/_app.js
2019-05-04T01:57:20.071521ZGET200 180.46 KB 6 ms Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)  /_next/static/chunks/commons.6b84ece70b270c5da3e5.js

===== 编辑

我确实看到 7 小时不活动后,它会在日志中发出以下行

Container terminated by the container manager on signal 9.
4

1 回答 1

1

您只是在查看 Cloud Console 中的绿色复选标记吗?这仅意味着该服务已准备好为流量提供服务。这并不意味着实例已被主动配置。

于 2019-05-04T08:13:44.537 回答