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) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
