문제

What is the recommended server layout for a production Rails application that is expected to receive medium (not heavy, but not light either) traffic? I'm thinking of a setup running Apache and Passenger (mod_rails). How many application servers, web servers, and database servers make sense? How should they be set up to provide redundancy, failover, reliability, etc.?

I know this is a broad question that depends on a lot of factors, but I'm just looking for general advice and suggestions for how this should be approached.

도움이 되었습니까?

해결책

Passenger and Apache or Nginx are great starting points.

The rest basically depends on your budget and requirements and are essentially impossible to give a canned response on.

A single server is a good place to start, and you will probably be surprised by the volume of traffic a single decently spec'd box with the right tuning can turn over.

If you have budget for two servers, a splitting the web server and database is the next logical step.

다른 팁

I highly recommend going with Heroku. Let it host the app for you and turn up the dial when you need more workers.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top