Data splitting

Brad Fitzpatrick brad at danga.com
Mon Aug 6 16:07:33 UTC 2007


On Mon, 6 Aug 2007, drpr0ctologist at gmail.com wrote:

> >
> > Users never see /dev8/0/000/763/0000763408.fid (or
> > /dev8/0/000/763/0000763408.jpg).
> >
> > Users would see:
> >
> >    http://img.domain.pl/my-funny-picture.jpg
> >
> > And then your app and/or database would map "my-funny-picture.jpg" to the
> > proper MogileFS key, or perhaps "my-funny-picture.jpg" _is_ the MogileFS
> > key you used.
>
>
> So basically when the client requests
> http://img.domain.pl/my-funny-picture.jpg, server "img.domain.pl", which
> runs Perlbal, would then communicate with the MogileFS tracker and translate
> the above to /dev8/0/000/763/0000763408.fid?
>
> I guess my question is, how does the app know how to do the translation with
> as little trouble as possible?  I'd rather not have to create some elaborate
> naming scheme separately if Perlbal+MogileFS tracker already does this.

You need a webserver (or a fancy Perlbal plugin) ... Perlbal and MogileFS
alone won't do this.

I repeat:  Perlbal does not talk to mogilefsd.  (only to mogstored, when
you tell it to, from your web server)

- Brad



More information about the mogilefs mailing list