I am in the process of migrating an app that currently resides on a
single hardware server (running pound, nginx as an asset host,
memcached, mongrel and mysql) to a new group of xen virtual machines: an
appserver running the mongrels, a webserver running nginx (which will be
handling the proxying now as well) and memcached, and a database server
running mysql.

One of the apps I am moving handles file uploads and I realize that I
now have to account for the fact that uploaded content should reside on
the webserver rather than the appserver since I have a rewrite rule in
my nginx config to check for static content before proxying to rails.
Also, maybe I'm thinking myself in a knot, my current rails code does
some post-processing of the upload but I am not clear which server
(rails or nginx) handles the upload and when... Could someone shed some
light on this for me?

My first thought regarding the uploaded file's final destination is to
export the public directory via NFS on the webserver and mount it on the
appserver but I am leery of using NFS, partially because I haven't  ever
and partially because of its reputation for performance issues.

Is there a recommended way of handling this?
-- 
Posted via http://www.ruby-forum.com/.

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

Reply via email to