Welcome! Log In Create A New Profile

Advanced

Re: Handle user uploads in static content server (newbie question)

April 12, 2010 01:24PM
On Apr 12, Leonardo Crespo wrote:
>I just found out that I can do that on linode. Thanks for bringing this
>idea up!
>
>Here's a solution:
>Using NFS, mount on the Dynamic server the Static server's directory
>for static files (/images /user-uploads etc). Have nginx on Dynamic
>with proxy_pass to Static for all static content. All uploads go to
>the mounted drive on Dynamic (which points to Static).

Either I am understanding this incorrectly or this sounds like you have
made things worse!

If the user requests for the static content is going to enter via D,
then what is the point? User download/access of static content should
directly hit nginx running on S which accesses it's local storage.

The reason why I'd push for the caching proxy option over shared storage
is that in the setup you suggested, NFS is being configured for remote
writes (during file upload). NFS writes should be avoided for the
following reasons:

* Security (why allow remote write access?)

* NFS does not offer all POSIX guarantess which might become an issue
(usually does during writes more than reads)

* Unavailability of the remote system translates into an inability to
accept new uploads

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Handle user uploads in static content server (newbie question)

leocrespo April 11, 2010 09:02PM

Re: Handle user uploads in static content server (newbie question)

leocrespo April 11, 2010 09:54PM

Re: Handle user uploads in static content server (newbie question)

anomalizer April 11, 2010 10:22PM

Re: Handle user uploads in static content server (newbie question)

leocrespo April 11, 2010 10:36PM

Re: Handle user uploads in static content server (newbie question)

anomalizer April 12, 2010 01:12PM

Re: Handle user uploads in static content server (newbie question)

leocrespo April 11, 2010 10:56PM

Re: Handle user uploads in static content server (newbie question)

edogawaconan April 11, 2010 11:04PM

Re: Handle user uploads in static content server (newbie question)

leocrespo April 11, 2010 11:12PM

Re: Handle user uploads in static content server (newbie question)

leocrespo April 11, 2010 11:54PM

Re: Handle user uploads in static content server (newbie question)

anomalizer April 12, 2010 01:24PM

Re: Handle user uploads in static content server (newbie question)

leocrespo April 13, 2010 09:56PM

Re: Handle user uploads in static content server (newbie question)

Gabriel Evans April 11, 2010 10:22PM

Re: Handle user uploads in static content server (newbie question)

leocrespo April 11, 2010 10:40PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 311
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready