本文介绍了有没有办法让Heroku Dyno入睡?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试调试一个API问题,该问题在我的应用尝试访问休眠的Heroku Dyno时发生.问题是,测功机自然需要一段时间才能入睡,因此确实减慢了调试过程的速度.
I'm trying to debug an API issue I have that occurs when my app tries to access a sleeping Heroku Dyno. The problem is it takes a while for a dyno to naturally sleep so it really slows down the debug process.
我知道如何关闭测功机,但是当应用向睡眠的测功机发出请求时,它并没有立即响应,但最终会响应.我试图修复的错误似乎发生了.
I know how to turn off a dyno but the bug I'm try to fix seems to happen when the app makes a request to a sleeping dyno that doesn't immediately respond, yet eventually responds.
推荐答案
我从Heroku工程师那里得到了明确的答案.不是,你不能强迫测功机入睡.
I got the definitive answer from a Heroku engineer. It's no, you can't force a dyno to sleep.
这篇关于有没有办法让Heroku Dyno入睡?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!