简体   繁体   English

nodejs 应用在 AppEngine 标准环境中运行时未收到 SIGTERM

[英]nodejs app doesn't receive SIGTERM when running in AppEngine Standard Environment

We have a nodejs app running in the AppEngine Standard Environment.我们有一个在 AppEngine 标准环境中运行的 nodejs 应用程序。 I'm expecting to receive SIGTERM from the environment during deployments or when autoscaling so that I can start a "graceful shutdown" process.我希望在部署期间或自动缩放时从环境中接收SIGTERM ,以便我可以启动“正常关闭”过程。 My process.on('SIGTERM', handler) handler is not being called.我的process.on('SIGTERM', handler)处理程序没有被调用。

Should I be getting SIGTERM like I'm expecting or are my expectations wrong?我应该像我期望的那样得到SIGTERM还是我的期望是错误的?

App engine standard environment only destroys and create instances, without send any signal before scale up or scale down.应用引擎标准环境只销毁和创建实例,在放大或缩小之前不发送任何信号。

Keep in mind that App Engine STD runs over a sandbox runtime and has lack of some OS perks.请记住,App Engine STD 在沙盒运行时上运行,并且缺少一些操作系统特权。

If you need run some tasks on shutdown application time is recommended to use App Engine Flexible Environment, this environment can handle SIGTERM signals如果您需要在关闭应用程序时运行一些任务,建议使用 App Engine 灵活环境,该环境可以处理SIGTERM信号

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 是什么导致此神秘的GCloud App Deploy错误? (NodeJS,AppEngine。标准环境) - What could be causing this mystery GCloud App Deploy error? (NodeJS, AppEngine. Standard Environment) 在AppEngline上运行时,将Cloud Firestore与AppEngine Go标准环境配合使用会返回rpc错误 - Using Cloud Firestore with AppEngine Go Standard Environment returns rpc error when running on AppEngline Appengine 标准上的 Spring Boot 无法启动 - Spring Boot on Appengine standard doesn't start 通过 IntelliJ 运行 Google App Engine Standard 时出错 - 找不到 appengine-web.xml - Error running Google App Engine Standard via IntelliJ - can't find appengine-web.xml 在 appengine 标准环境中将应用程序从 Python2 迁移到 Python3 - Migrating app from Python2 to Python3 on appengine standard environment 使用NodeJ运行App Engine标准环境 - Run App Engine standard environment with NodeJs 为什么nodejs实例无法在google app engine标准环境下启动成功? - Why couldn't nodejs instance start successfully in google app engine standard environment? 首次在 Google AppEngine Standard 项目上运行 gradle 时出现 NullPointerException - NullPointerException when running gradle for the first time on Google AppEngine Standard project 运行AppEngine App时出现“ 87%EXECUTING”消息 - '87% EXECUTING' Message When Running AppEngine App 在GCP的Appengine中,如何保证在appengine中使用Java代码,在app engine启动时不报500错误? - In Appengine of GCP, how can we ensure that using Java code in appengine , it doesn't give 500 error when the app engine is getting startup?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM