[EMAIL PROTECTED] wrote: > On Jul 28, 7:14 am, Chris T <[EMAIL PROTECTED]> wrote: > > >> I'm looking for comments, suggestions, best practices for handling >> page_caching with shared storage. >> This is the scenario: >> >> nginx box in front of multiple mongrel_cluster boxes (Xen instances >> actually) >> >> At the moment each mongrel_cluster has its own public folder, though >> sub-folders of this are shared via symlinks, so the file data >> (principally images uploaded via attachment_fu, and cached fragments) >> can be shared between the mongrel_cluster instances and nginx. >> >> I'm now adding some limited page_caching, principally for the RSS feeds >> to start with. What do you think is the best way to handle this: >> >> -- share the whole public folder across everything >> > > I'd recommend you look at clustered filesystems, rather than something > like NFS. > > I'd also seriously consider sharing RAILS_ROOT in its entirety. > > This improves deployment time (only one checkout!) and guarantees > identical code on all nodes. > > On the flip side, it eventually will cause a scaling problem as it's > shared-something. :-) > > -- > -- Tom Mornini, CTO > -- Engine Yard, Ruby on Rails Hosting > -- Support, Scalability, Reliability > -- (866) 518-YARD (9273) > > > > > > Thanks Tom
By clustered filesystems (apologies for my ignorance) do you mean some sort of SAN. At the moment, I'm using one of the Xen instances as NFS, which works OK), and though I was thinking I'll probably need to upgrade the storage as the site grows, it hasn't so far been a problem. If you shared RAILS_ROOT in its entirety does this increase problems with the various servers trying to access the same files (obviously logging could be a problem -- though that could presumably be solved by going to a Syslog solution -- at the moment I've got each mongrel_cluster handling its own logging)? Any pointers for this self-taught sysadmin gratefully received. Thanks Chris -- ---------------------------- Autopendium :: Stuff about old cars http://autopendium.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Deploying Rails" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---
