javascript - using node watchFile reliably - nfs, cifs, scp? -


i trying implement db-to-server push model using node's watchfile functionality. right exporting nfs4 share db. server mounts share. when db processes new data, touches files in export location. server sees time change of files , performs push clients.

problem server isn't seeing files being updated until performs subsequent poll request. makes pull model, not push. if unmount share serverside , touch files in mount folder, watchfile performs fine , sees changes within default 5007ms window.

my alternate ideas include using scp push files db server, - seems cludgy i've tested , watchfile works it. haven't gone cifs route yet.

should give on relying on nfs4 behave node's watchfile()? if not, should tweak/test? alternative methods have worked you?

i've seen same on samba watches not triggered on server. turns out underlying notify depends on source of change, not fundamental filesystem might expect.

scp , sftp should work fine, on filesystems use. go more reliable method, if db choice changes in future.


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -