A hardware question
kingler
kingler at 72pines.com
Mon Apr 28 23:04:05 MSD 2008
I know there are MogileFS client libraries for Perl/PHP/Ruby, but if
someone can code a C library for MogileFS and it is then possible to
make a Nginx module to support. I guess this will be more efficient
than going down the Perl/PHP/Ruby route.
Does it make sense at all? Would the benefits outweigh the extra
efforts to code the nginx module?
-Liang
kingler from 72pines
On Mon, Apr 28, 2008 at 11:46 AM, mike <mike503 at gmail.com> wrote:
> I am actually thinking about making a MogileFS passthrough
>
> (I posted an email about it, looks like someone in Japan figured it out)
>
> Would allow for minimal PHP/perl/python/whatever language to be
> involved, just enough to look up where a file is. Then pass that back
> to nginx with "file is on $server" and then use X-Accel-Redirect to
> bounce to that server...
>
> Haven't done it yet, but I think it would work quite amazing!
>
>
>
> On 4/28/08, Igor Sysoev <is at rambler-co.ru> wrote:
> > On Mon, Apr 28, 2008 at 12:16:59PM +0200, Chavelle Vincent wrote:
> >
> > > Igor Sysoev wrote:
> > >
> > > > We use the proxying in this case instead of NFS:
> > > >
> > > > client > nginx (1) > nginx
> > > >
> > > > On nginx (1) it's better to set "proxy_max_temp_file_size 0" for
> > > > the proxied location.
> > >
> > > You recommend to use proxying for mass file serving. I am in this case,
> > > I use nginx and a specific module that I have coded. (to simplify
> > > things, it control access files and redirect client to
> > > ngx_http_internal_redirect)
> > >
> > > I have think to use NFS for serve the files. I don't understand how to
> > > use proxying instead of that.
> >
> > Set up nginx on NFS server and proxy to it instead of getting files via NFS:
> >
> > location /files/ {
> > proxy_pass http://nfs_server_nginx;
> > proxy_max_temp_file_size 0;
> > }
> >
> >
> > --
> > Igor Sysoev
> > http://sysoev.ru/en/
> >
> >
>
>
More information about the nginx
mailing list