google-cloud-platform - Is there a way to detect cold start in Google Cloud Functions?
问题描述
When my GCF function is in a cold start state, I need to send a "wait" signal to the invoking endpoint to let it know that response time may be a bit slower. (For context, this is the back-end of a Slack slash function, which requires an initial response within three seconds. We're seeing > 3s gcf spin-up time at cold start though).
If relevant, the relevant cloud function is also performing calls to firestore.
Is there a way to detect when a cloud function is spinning up from cold start? Can't find any mention of this anywhere... Thank you.
解决方案
推荐阅读
- angular - Angular 5 项目无法升级到 Angular 7
- r - 无法在 BiocManager 中安装 GO.db
- vue.js - 谷歌签名后的谷歌云端硬盘 API - Vue.Js
- repast-simphony - repast.simpony.ui.GUIScheduleRunner 错误信息
- python - 按最新日期加入两个熊猫数据框
- python - 使用 python-docx 突出显示 docx 文件中的单词会产生不正确的结果
- apache-nifi - 我们如何确保在处理 HTTP 请求时使用 nifi 文件只处理一次
- python - 基于列名称扩展的 DataFrame 列的平均值
- python - 安排一个任务在每个星期五运行,但如果它完成并且计算机在星期五重新启动,则避免运行两次 + 如果计算机在星期五关闭,则在第二天执行
- anychart - 如何为日期时间刻度格式化 x 标签