我应该在Heroku Cedar上使用瘦身或独角兽吗? [英] Should I use thin or unicorn on Heroku Cedar

查看:120
本文介绍了我应该在Heroku Cedar上使用瘦身或独角兽吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近'升级'我的应用程序到heroku的雪松平台上。默认情况下,我使用 thin 作为Web服务器。但我一直很想使用 unicorn 来实现并发性,并让我的dyno美元成为父亲。但我担心在使用Thin以外的产品时会遇到一些问题。



有没有人有这个决定的真实生活经验?

谢谢!

乔纳森







  • 这篇文章让我对这个想法感到兴奋: http://michaelvanrooijen.com/articles/2011 / 06/01-more-concurrency-on-a-single-heroku-dyno-with-the-new-celadon-cedar-stack /

  • 我知道每一个应用是不同的,并且你应该建立一个登台环境并为你自己尝试。但是,如果它在你的升级环境下看起来不错,它们是我们应该知道的任何陷阱吗?
  • 我想知道为什么每个人不应该这样做

    解决方案

    更新 - 3个月后。



    <我一直在使用独角兽生产3个月,而且我非常高兴。每个测功机使用4个麒麟工人。


    您需要注意的一件事是内存消耗和泄漏。实际上,每个测功机没有512MB的内存,而是由heroku工人的数量除。但记住这一点 - 这是一个很大的成本节省


    I recently 'upgraded' my app to the cedar platform on heroku. By default I am using thin as a web server. But I have always been tempted to use unicorn for concurrency and having my dyno dollar go father. But I worry there are some gotchas in using something other than Thin.

    Does anyone have real life experience with this decision?

    Thanks!

    Jonathan


    Notes:

    I want to know reasons why everyone shouldn't do this

    解决方案

    Update -- 3 months later.

    I have been using unicorn in production for 3 months, and I have been very pleased. I use 4 unicorn workers per dyno.

    One thing you do need to keep an eye out for is memory consumption and leakage. In effect instead of having 512MB of memory per dyno -- you have that divided by the number of heroku workers. But keeping that in mind -- it has been a great cost saver

    这篇关于我应该在Heroku Cedar上使用瘦身或独角兽吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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