Mogile plugin for perlbal

Aaron Trevena aaron.trevena at
Tue Mar 11 15:54:36 UTC 2008

On 11/03/2008, Ask Bjørn Hansen <ask at> wrote:
>  On Mar 11, 2008, at 8:38, Aaron Trevena wrote:
>  > I was thinking I could "just" add a couple of configuration options,
>  > i.e. mogile_domain and mogile_class, and use MogileFS Client to get
>  > the url to (re)proxy from the filename (using a subclass to provide a
>  > filename -> key mapping method, or maybe a mod_rewrite style rule)
> I made a simple one some time ago.  It'll block if the MogileFS daemon
>  is slow for whatever reason and when I was working on making the
>  lookups run in another process it started to seem like a lot of extra
>  complexity for relatively moderate gains.

I imagine it would be quicker and easier to make use of both file and
reproxy caching that write and test a fast/reliable plugin. I just
liked the idea of cutting mod_perl out of the loop for the 8 to 20
user-generated images per result page on this site.

I'm thinking of sticking with my original plan then :
mod_perl process checks for existance of local file, if there reproxy
to, and touch file,  else reproxy to mogilefs url and fetch file in
cleanup hook. Leave cleaning up the cache of images to a cron job.


LAMP System Integration, Development and Hosting

More information about the perlbal mailing list