当任何单个请求进入时,我都会收到此警告。似乎该进程将在处理请求后立即关闭。
由于我无法发布图像,我将复制并粘贴一些日志。
2012-11-25 09:12:37.441 /task/process-block 200 1609ms 0kb AppEngine-Google; (+http://code.google.com/appengine)
I 2012-11-25 09:12:37.440 This request caused a new process to be started for your application, and thus caused your application code to be loaded for the first time. This requ...
2012-11-25 09:12:26.054 /task/process-block 200 2160ms 0kb AppEngine-Google; (+http://code.google.com/appengine)
I 2012-11-25 09:12:26.053 This request caused a new process to be started for your application, and thus caused your application code to be loaded for the first time. This requ...
2012-11-25 09:12:14.036 /task/process-block 200 3156ms 0kb AppEngine-Google; (+http://code.google.com/appengine)
I 2012-11-25 09:12:14.036 This request caused a new process to be started for your application, and thus caused your application code to be loaded for the first time. This requ...
据我了解,当没有请求进入时,一个处理应该至少停留 15 分钟,但上面的日志显示该进程被杀死的时间不超过 10 秒。目前我只能看到一个动态类型的实例(在我签出时我看不到任何实例运行前几个小时),即使它完成了前一个实例的处理,该实例也不会响应请求。相反,将生成一个新实例并响应请求。
是bug还是设置问题?我的应用程序使用 python 2.7 线程安全,我将最大空闲实例设置为 1,将最小挂起延迟设置为 15.0s。
更新:
我将 Max Idle Instances 更改为 50,问题仍然存在。