AW: Use lighttpd instead of mogstored
Brad Fitzpatrick
brad at danga.com
Thu Jun 8 06:56:42 UTC 2006
The solution is much easier: 999/1000 of the time the directory will
statistically already exist. So just assume it's there & upload. If you
get an error, create the directories, and then re-PUT.
I'll work on this. Maybe you can save me time and show me the TCP dump of
a DAV directory creation operation?
On Thu, 8 Jun 2006, M. Abels wrote:
> I only did this patch in the fact of that mogilefs doesn't create the directories. So if mogilefs would create the directories by using standard
> Dav mathods it will be run fine.
> I think the problem is that mogilefs doesn't know on which client which directories "not files" are created. So I will be endup with creating the directories on every request which is real a bad solution (performance). So my patch is much more easier. Or you will implement that you also know which directory is created on which client(mogstored).
>
> cheers
>
> Meno
>
> -----Ursprüngliche Nachricht-----
> Von: the cyrus mail server [mailto:cyrus at adviser.com] Im Auftrag von Brad Fitzpatrick
> Gesendet: Donnerstag, 8. Juni 2006 08:01
> An: Meno Abels
> Cc: mogilefs at lists.danga.com
> Betreff: Re: Use lighttpd instead of mogstored
>
> Very cool.
>
> Would your lighttpd patch not be required if MogileFS created the
> directories ahead of time, one directory at a time, perhaps doing the DAV
> methods necessary to create them? If so, I'd happily go that route so
> people could use unmodified lighttpds and/or Apaches with mod_dav.
>
> - Brad
>
>
> On Mon, 5 Jun 2006, Meno Abels wrote:
>
> > hello,
> >
> > i just want to use what i know, and this is a standard httpd. The
> > perlbal is for me a bit obscure so i made a small patch to the
> > lighttpd which enables them to run as mogstored substition.
> >
> > Use need to enable the mod_webdav on the lighttpd and than add the
> > following options and everything is working:
> >
> > webdav.activate = "enable"
> > webdav.is-readonly = "disable"
> > webdav.mkdir-on-put = "enable"
> >
> > Currently i lack the support of the usage stuff but is should be also
> > easy done in the next step-:) Currently i generate
> > the usage every 5 seconds by using a for ever running small script.
> >
> > cheers
> >
> > meno
> >
>
>
More information about the mogilefs
mailing list