Tim Ferrell
2008-Jun-19 18:15 UTC
uploads & nginx/mongrel with multiple machine deployment
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 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 am not clear on what impact splitting the web and app roles across servers will have. I realize I will need to devise some method for making the uploaded file accessible to the web server after post-processing (since I want it serving all static content) but I am a bit confused about the actual upload submission. To the point, I am not clear if nginx is actually receives the uploaded file and then hands it to the rails backend or if the rails backend handles the file upload all by itself... If that is the case would I need to also devise a way to make the file data accessible to the rails backend since it would seemingly reside on a different server? I think I am thinking myself in knots. :-) Could someone clarify this for me? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
heimdull
2008-Jun-19 19:09 UTC
Re: uploads & nginx/mongrel with multiple machine deployment
nginx does buffer the whole request body before sending it to the backends. For the file distribution maybe attachment_fu and S3? or NFS ... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---