On Wed, 22 Nov 2006, Martin DeMello wrote: > I had a happily-running inotify daemon monitoring file creation and > deletion that broke when we moved to a multiple machine + NFS setup. > Apparently inotify doesn't work over NFS, but it *does* if you have > the watcher on the same machine as the process creating or deleting > the files, which is actually good enough for me. > > So here's my current idea - I just wanted to run it by the list since > I know people here have done related stuff (Ara, I'm looking at you > :)): > > * Have an inotify process per machine that watches for file creation > and deletion, and sends the messages to a Drb server on a single box. > * Have the Drb server field messages and put them into an in-memory queue > * Have a separate thread in the server program that wakes up every 15s > or so and drains the queue if needed > > Any potential pitfalls? Any better way of doing this? > > martin one other quick thought - postgresql has an async notification mechanism that might be useful in your arch. cheers. -a -- my religion is very simple. my religion is kindness. -- the dalai lama