知识卡片
事件创建需就绪检查
自动扩容根据负载增加实例,自动恢复则替换失败实例;这些行为可在栈代码中定义。实例模板确定镜像和资源,伸缩规则控制数量范围,健康检查定义何时认为可服务或失败。新实例出现不等于已准备好,检查与等待时间是自动化生命周期的一部分。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 以代码构建服务器 · 查看原书依据
This example tells the platform to keep at least two and at most five instances of the server running. The platform adds or removes instances as needed to keep the CPU utilization across them close to 40%. The definition also includes a health check. This check makes an HTTP request to /health on port 8443,
参考来源
- 位置:《Infrastructure As Code》第11章《以代码构建服务器》(来源项目:book-sources;源文件:extracted/Infrastructure As Code/_epub-src/OEBPS/ch11.html)
- 结论依据:原文说明自动扩容根据负载增加实例,自动恢复则替换失败实例;这些行为可在栈代码中定义;本卡据此解释其用途及适用边界。
- 原始内容:This example tells the platform to keep at least two and at most five instances of the server running. The platform adds or removes instances as needed to keep the CPU utilization across them close to 40%. The definition also includes a health check. This check makes an HTTP request to /health on port 8443,