Zero downtime on Heroku

前端 未结 4 1647
一整个雨季
一整个雨季 2021-02-13 22:12

Is it possible to do something like the Github zero downtime deploy on Heroku using Unicorn on the Cedar stack?

I\'m not entirely sure how the restart works on Heroku

4条回答
  •  情深已故
    2021-02-13 22:40

    I can't address migrations, but the part about restarting processes and avoiding wait time:

    There is an beta feature for heroku called preboot. After a deploy, it boots your new dynos first and waits a while before switching traffic and killing the old ones:

    https://devcenter.heroku.com/articles/labs-preboot/

    I also wrote a blog post that has some measurements on my app's performance improvements using this feature:

    http://ylan.segal-family.com/blog/2012/08/27/deploy-to-heroku-with-near-zero-downtime/

提交回复
热议问题