阻止Heroku Dyno骑自行车 [英] Stop Heroku Dyno from cycling

查看:72
本文介绍了阻止Heroku Dyno骑自行车的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个爱好Dyno,它在Heroku中托管一个应用程序,用户可以在其中上传图像.

I have a Hobby Dyno that hosts an application in Heroku in which users can upload images.

我注意到的是Dyno在他的循环中重新启动,导致所有图像消失了.

What I've noticed is the Dyno restarts during his cycle causing all images to be gone.

2018-07-27T16:23:09.914767+00:00 heroku[web.1]: Cycling
2018-07-27T16:23:09.915421+00:00 heroku[web.1]: State changed from up to starting

我知道涉及第三方存储或将应用程序托管在另一个平台的解决方案.

I am aware of solutions that involve a third-party storage or host the app in another platform altogheter.

我想知道是否有一种方法可以停止测功周期并且永远不会像一直处于 up 状态那样重新启动它?

I am wondering if there is a way to stop a dyno cycle and never make it restart such as is always in the up state?

谢谢.

推荐答案

没有方法可以防止dyno循环.Heroku每天至少自动一次.

There is no way to prevent dyno cycling. Heroku does this automatically at least once per day.

Heroku的整个设计基于 12要素应用,其中指出您应用的流程为临时文件系统来部分完成此操作.必须使用外部服务来保留文件.

Heroku's entire design is based on The 12-Factor App, which states that your app's processes are disposable. Heroku accomplishes this (in part) with its ephemeral file system, which is why you must persist files using an external service.

这篇关于阻止Heroku Dyno骑自行车的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆