在 vps 切片上运行的 Ruby on Rails

发布于 2024-07-11 18:14:33 字数 153 浏览 4 评论 0原文

在小切片 (256MB) 上运行 Rails 时有哪些主要问题和技巧? 对于狭窄的房间来说,最好的服务器设置是什么? Passenger、Nginx、Mongrel? 在这种环境下最好的后台任务处理器是什么? 需要注意什么? 我很想听听那些已经做到这一点并撞到一些虚拟墙的人的故事。

What are the major gotchas and tricks when running Rails on a small slice (256MB)? What is the best server setup for cramped quarters? Passenger, Nginx, Mongrel? What is the best background task processor in this kind of environment? What do you need to watch out for? I'd love to hear the stories of people who have done this and bumped into some of the virtual walls.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(4

哑剧 2024-07-18 18:14:33

我在 256mb slicehost 上运行 Passenger,没有问题。 比任何其他替代方案更容易设置。 对于背景资料,我使用 Starling 和 Workling,Ryan Bates 有一个 优秀的截屏视频如何一起使用两者。

I'm running Passenger on a 256mb slicehost, no problems. Much, much, much easier to set up than any other alternative. For background stuff I use Starling and Workling and Ryan Bates has an excellent screencast on how to use both together.

安静 2024-07-18 18:14:33

Nginx 代理几个杂种。 更新 gems 可能会导致内存不足,但这可以通过从源代码下载并编译 ruby​​gems 来解决。 使用 cron 执行后台任务不会有任何问题,因为它非常轻量。

Nginx proxying for a couple of mongrels. Updating gems can cause you to run out of memory, but this can be solved by downloading and compiling rubygems from source. You will have no problem using cron for background tasks as it is very lightweight.

夜空下最亮的亮点 2024-07-18 18:14:33

在我的 256 切片上,我在一对瘦服务器前面运行 nginx。 无论你决定使用什么,请确保你使用 god 或 monit 来控制你的筹码。

On my 256 slice I run nginx in front of a pair of thin servers. Whatever you decide to go with make sure you're using god or monit to keep your stack in check.

昇り龍 2024-07-18 18:14:33

我建议使用 Passenger,因为它简单且占用空间小。 我的 VPS 上有多个域(RailsPlayground 上有 256MB VPS),到目前为止没有任何问题。 另外,Starling/Workling 组合效果很好,如果您的网站不大(非常简单),您甚至可以使用 Spawn 插件。

I suggest Passenger for it's simplicity and smallish footprint. I have that on my VPS with several domains (256MB VPS on RailsPlayground) and no problems so far. Also, the Starling/Workling combination works pretty well or you could even just use the spawn plugin if your site isn't huge (it's dead simple).

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