简体   繁体   English

在单个服务器上部署多个Rails应用程序的最节省资源的方法

[英]Most Resource-Efficient Way to Deploy Multiple Rails Apps on a Single Server

I have a Virtual Dedicated Server that I use to host small websites that aren't large enough to justify their own dedicated slice. 我有一台虚拟专用服务器,用于托管规模不足以证明其专用切片的小型网站。 I am a Rails developer and am currently using an Ubuntu/Nginx/Mongrel Cluster/SQLite stack to deploy these applications. 我是Rails开发人员,当前正在使用Ubuntu / Nginx / Mongrel群集/ SQLite堆栈来部署这些应用程序。

I feel that the memory being consumed by each Mongrel instance is too high. 我觉得每个Mongrel实例占用的内存太高。 I am wondering what the recommended way to serve these applications is to keep resource usage to a minimum. 我想知道为这些应用程序提供服务的推荐方法是将资源使用降至最低。 I have heard that Mongrel is no longer recommended in favor of Passenger. 我听说不再推荐Mongrel来支持乘客。 I have continued using Mongrel, though, because I feel that it is more lightweight. 不过,我继续使用Mongrel,因为我觉得它更轻巧。 This may be a complete misperception on my part, though. 不过,对我而言,这可能完全是一种误解。

Any ideas? 有任何想法吗?

具有Passenger + Enterprise RoR可能有助于减少内存占用量(并可能提高性能)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM