3
我已經部署了一個django應用到heroku,使用芹菜長時間運行的任務。出於性能方面的原因(時間爲&內存),我使用不同的併發設置生成兩個工作者並路由任務。它在我的當地環境中工作得很好,但工人立即在heroku上崩潰。在heroku上芹菜多次崩潰
2014-07-08T15:24:11.300344+00:00 heroku[worker.1]: Starting process with command `python manage.py celery multi start single multi -c:multi 8 -c:single 1 -Q:single single -Q:multi multi --loglevel=INFO`
2014-07-08T15:24:11.944619+00:00 heroku[worker.1]: State changed from starting to up
2014-07-08T15:24:13.386256+00:00 app[worker.1]: celery multi v3.1.8 (Cipater)
2014-07-08T15:24:13.386418+00:00 app[worker.1]: > Starting nodes...
2014-07-08T15:24:13.807448+00:00 app[worker.1]: > [email protected]: OK
2014-07-08T15:24:14.318063+00:00 app[worker.1]: > [email protected]: OK
2014-07-08T15:24:16.242842+00:00 heroku[worker.1]: Process exited with status 0
2014-07-08T15:24:16.258695+00:00 heroku[worker.1]: State changed from up to crashed
2014-07-08T15:24:16.259282+00:00 heroku[worker.1]: State changed from crashed to starting
2014-07-08T15:24:27.430541+00:00 heroku[worker.1]: State changed from starting to up
2014-07-08T15:24:28.621064+00:00 app[worker.1]: celery multi v3.1.8 (Cipater)
2014-07-08T15:24:28.621229+00:00 app[worker.1]: > Starting nodes...
2014-07-08T15:24:29.103659+00:00 app[worker.1]: > [email protected]: OK
2014-07-08T15:24:29.667462+00:00 app[worker.1]: > [email protected]: OK
2014-07-08T15:24:30.948397+00:00 heroku[worker.1]: State changed from up to crashed
2014-07-08T15:24:26.827871+00:00 heroku[worker.1]: Starting process with command `python manage.py celery multi start single multi -c:multi 8 -c:single 1 -Q:single single -Q:multi multi --loglevel=INFO`
2014-07-08T15:24:30.938523+00:00 heroku[worker.1]: Process exited with status 0
這就是我可以從日誌中獲取的......我需要爲Heroku的一些特殊的設置或不celery multi
不是一個單一的DYNO工作(再)?我給谷歌喂最明顯的關鍵字,但沒有看到答案。
任何幫助或提示,高度讚賞!