部署 Rack 应用程序的可靠方法 (Sinatra)

发布于 2024-10-08 23:56:14 字数 198 浏览 1 评论 0原文

我正在寻找一种部署 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

对风讲故事 2024-10-15 23:56:14

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/ .

万水千山粽是情ミ 2024-10-15 23:56:14

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文