archiva-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Avril <avr...@gmail.com>
Subject Re: Archiva has periodic load-peaks
Date Fri, 04 Dec 2009 12:56:11 GMT
2009/12/1 Brett Porter <brett@apache.org>
> These look to be on the hour, which would correlate with the default scanning interval.
You can reduce that period as long as you are not relying on detecting the arrival of files
on the filesystem from external sources and can wait for certain metadata to be populated.

Using inotify (for Linux) may be interesting.
Inotify is a linux kernel API which trigger events on filesystem changes :
    - file created.
    - file modified.
    - file renamed.
    - file deleted.

This way, Archiva could trigger a "mini-scan" only when it is usefull.

There are 2 projects providing bindings for Java :
http://code.google.com/p/inotify-java/
http://jnotify.sourceforge.net/

Mime
View raw message