WebFaction
Community site: login faq

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
11
accept rate: 0%


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.

permanent link

answered 14 Jul '13, 12:00

likebike
3366
accept rate: 28%

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.

permanent link

answered 14 Jul '13, 13:50

Olevelo
11
accept rate: 0%

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.

permanent link

answered 14 Jul '13, 14:08

likebike
3366
accept rate: 28%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×108
×25

question asked: 14 Jul '13, 08:15

question was seen: 2,313 times

last updated: 14 Jul '13, 14:08

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM