What is the current best practice for deploying multiple Rails apps on Webfaction? From this post two years ago: http://community.webfaction.com/questions/2558/how-do-i-serve-multiple-passenger-apps-from-a-single-nginx-instance it seems to be suggested that installing multiple nginx/passenger servers is more efficient than just a single server with multiple apps mapped. Is this still the case? asked 14 Jul '13, 08:15 Olevelo |
The current "best practice" is to simply install all of your apps from the WebFaction Control Panel, which will create separate daemons for each app. This provides nice isolation between your sites so that problems in one does not affect another. It might be more efficient to run all your apps from a single daemon, but it will also greatly increase the complexity of the system, and break much of the isolation between apps. answered 14 Jul '13, 12:00 likebike |
Perhaps I should have clarified, what method uses resources the most efficiently? Obviously with memory limits that is a primary concern, but also with processor usage? Thanks. answered 14 Jul '13, 13:50 Olevelo |
Nginx typically uses around 10MB of RAM. So you could potentially save up to 10MB for each additional Rails app by using a virtualhost configuration, like the one mentioned in the other post you mentioned. CPU usage will be the same either way. answered 14 Jul '13, 14:08 likebike |