There are a lot of ways you can go, and it'll depend on your apps, what OS and resources are available to you, whether you need utmost performance, or easiest setup and maintenance, etc.
>From what I've observed, Nginx, Swiftiply, and Mongrel/Mongrel_cluster are the way to go as sort of the best all-software setup. We are migrating to this, as we have intense traffic - both in number of requests and volume/bandwidth expected. However, we'll have F5 BigIP load balancers in front as well, so in production will be using those for load balancing. Currently though, for development and testing, we're using Pound, partly because it was trivial to set up. We have 4 Rails apps that work together in an SOA style architecture, as well as serving a fair chunk of static content. We use RESTful routes, and essentially a path prefix, so the Pound configuration was just extremely simple. Each Rails app gets a port range for X number of Mongrels (via Mongrel Cluster) on a given machine, and then Pound directs traffic and load balances across all that. Works quite well, and is nice and easy to maintain. Pound does bog down at a certain level of traffic, but for development work, and main testing purposes it is quite fine. Our production setup is more complicated, and involves hardware load balancing via the F5's as mentioned, and we'll be using Nginx in a few ways as well, Pound will be out, etc. We don't use Apache, but you may or may not need it depending on your needs/constraints/requirements (for example, if you need a particular Apache module, or that's all a VPS can give you, or whatever). On 6/11/07, James Hargreaves <[EMAIL PROTECTED]> wrote: > > > Hi everyone! > > I've just asked a question in the Rails forum: > > http://www.ruby-forum.com/topic/111412#new > > But I've been re-directed here for a more detailed answer :) Anyway, > below is my original question(s). > > My development-side question was answered already but I'm still > interested in learning more about the production side of things - eg - > whether people suggest using Pound or Apache, do I need multiple mongrel > clusters, etc. > > I've been using Apache for years but I'm not really familiar with > configuring it outside common behaviour and if Pound is going to be a > little easier I might go with that, if it will do the same thing? > > My main concern is how to host multiple applications on a single server > - I am a website developer so I'll likely end up with a lot of sites > running on a single server. Do I need a separate application (and > mongrel cluster) for each of these? > > Anyway, whatever help you can provide would be greatly appreciated! > > Thanks > Jay > > --- > > Hi everyone! > > I'm just getting started with RoR - I'm a bit behind the game! Anyway, I > have several website I want to move over to this format and which I want > to host on a single Linux Virtual Machine (that's what my hosting is at > the moment, if I have to upgrade to a dedicated server, so be it). So > I'm a little confused about how this all fits together - most of the > info I've read seems to be geared towards a single application, rather > than multiple applications. > > So I guess my question is, what setup should I use for development and > production? I have been considering Apache or Pound, with a mongrel > cluster running several Ruby instances. But do I need this much on the > development side? Or can I just use WebBrick on different ports and be > done with thinking about it? When it comes to production what do I do > here? Do I need a mongrel cluster for each application? Or can you make > each cluster run more than one application, so Apache/Pound can redirect > to the same place for all incoming requests? > > Anyway, any help with setting this up would be most appreciated :) > > Thanks > Jay > > -- > Posted via http://www.ruby-forum.com/. > > > > -- Chris Bailey [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Deploying Rails" group. To post to this group, send email to rubyonrails-deployment@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-deployment?hl=en -~----------~----~----~----~------~----~------~--~---