部署 Rack 应用程序的可靠方法 (Sinatra)
我正在寻找一种部署 Rack 应用程序的可靠方法(在本例中为 Sinatra 应用程序)。请求将花费一点时间(代理 HTTP 请求等待 0.25-0.5 秒),并且可能存在相当大的流量。
我应该采用传统的混合集群设置吗?使用 HAProxy 作为负载均衡器? nginx?货架?
您使用过哪些解决方案以及有哪些优势?
I'm looking for a robust way to deploy a Rack application (in this case a Sinatra app). Requests will take a little time (0.25-0.5 sec waiting on proxied HTTP requests) and there may be a decent amount of traffic.
Should I go with a traditional mongrel cluster setup? Use HAProxy as a load balancer? nginx? rackup?
What solutions have you used and what are the advantages?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Nginx / 独角兽 FTW!
Nginx 在前面提供静态文件,unicorn 在前面处理 Sinatra 应用程序。
优点:性能、unixocks 良好的负载平衡以及无需停机即可部署/升级(您可以无需停机即可升级 Ruby/Nginx/Sinatra/app)。
操作方法:http://sirupsen.com/setting-up-unicorn-with- nginx/ .
Nginx / Unicorn FTW!
Nginx in front to serve static files and unicorn to handle Sinatra app.
Benefits: Performance, good load balancing with unix socks and deploy/upgrade without any downtimes (you can upgrade Ruby/Nginx/Sinatra/app without downtime).
How-to : http://sirupsen.com/setting-up-unicorn-with-nginx/ .
Nginx/乘客。
Nginx 非常轻量、高性能并且具有可读的配置文件。 Passenger 很坚固,易于设置,并且与机架配合得很好 - 只需将 config.ru 放在应用程序的主目录中即可。 Passenger 还可以为您处理生成过程和负载平衡。
Nginx / passenger.
Nginx is very light, performant and has readable configuration files. Passenger is solid, easy to set up and works very well with rack - just have your config.ru in your app's main dir. Passenger can also take care of spawning processes and load balancing for you.