我有一個用Rails編寫的應用程序,部署在Heroku上。我以前一直在使用1臺網絡測試儀,但是今天我發佈了這個應用程序,流量很大,所以我決定增加4臺網絡測試儀和1臺工作臺測試儀。我不知道爲什麼總是當我做heroku ps
它表明:Heroku dyno/worker開始崩潰
Process State Command
-------- -------------- ---------------------------------
web.1 up for 22s bundle exec rails server -p $PORT
web.2 up for 36s bundle exec rails server -p $PORT
web.3 up for 25s bundle exec rails server -p $PORT
web.4 up for 22s bundle exec rails server -p $PORT
worker.1 crashed for 7s bundle exec rake jobs:work
工人賽道heroku scale worker=1
後直接崩潰。日誌如下:
2012-03-11T23:12:18+00:00 heroku[worker.1]: Starting process with command `bundle exec rake jobs:work`
2012-03-11T23:12:19+00:00 heroku[worker.1]: State changed from starting to up
2012-03-11T23:12:22+00:00 app[worker.1]: rake aborted!
2012-03-11T23:12:22+00:00 app[worker.1]: Don't know how to build task 'jobs:work'
2012-03-11T23:12:22+00:00 app[worker.1]:
2012-03-11T23:12:22+00:00 app[worker.1]: (See full trace by running task with --trace)
2012-03-11T23:12:23+00:00 heroku[worker.1]: Process exited with status 1
2012-03-11T23:12:23+00:00 heroku[worker.1]: State changed from up to crashed
2012-03-11T23:12:23+00:00 heroku[worker.1]: State changed from crashed to created
2012-03-11T23:12:23+00:00 heroku[worker.1]: State changed from created to starting
2012-03-11T23:12:32+00:00 heroku[worker.1]: Starting process with command `bundle exec rake jobs:work`
2012-03-11T23:12:32+00:00 heroku[worker.1]: State changed from starting to up
2012-03-11T23:12:36+00:00 app[worker.1]: rake aborted!
2012-03-11T23:12:36+00:00 app[worker.1]: Don't know how to build task 'jobs:work'
2012-03-11T23:12:36+00:00 app[worker.1]:
2012-03-11T23:12:36+00:00 app[worker.1]: (See full trace by running task with --trace)
2012-03-11T23:12:37+00:00 heroku[worker.1]: Process exited with status 1
2012-03-11T23:12:37+00:00 heroku[worker.1]: State changed from up to crashed
就是這樣。你有什麼想法,爲什麼? Web dynos工作正常。我必須在我的應用程序中配置某些東西來使用工人dynos嗎?
如果你能用人類的語言來解釋我,我將不勝感激將heroku平臺分割成網絡和工人dynos的邏輯是什麼?我已閱讀文檔次數,但我仍然認爲我錯過了理解它的觀點,因爲我在世界上長大,在這個世界裏你有存儲限制和東西。
這解釋了很多這太視頻。非常感謝你的回答! – 2012-03-12 00:28:07
我很高興能幫上忙。我害怕我的英語技能不足以解釋它。 – 2012-03-12 00:35:11