-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PM2:Watch - Using GlusterFS - Only restarting on one server #1677
Comments
Internally pm2 uses https://github.com/paulmillr/chokidar. I think that they'll have a better clue about this than I. May you open an issue there? I know that there are issues with NFS but I'm not familiar with GlusterFS. |
Yeah, I realised after posting. I'm just setting up a test case. sorry for bothering you :) |
Hey, just an fyi, issue replicated using just chokidar in isolation. :) |
#931 (comment) |
Just in case anyone comes across this issue, GlusterFS is considered a Network File System I guess so usePolling:true fixes the issue. |
Here is my setup:
I have two servers (Web-01 and Web-02) which are load balanced. I have watch enabled and I am using GlusterFS to mirror the files between the two servers. So /var/www/l008/ is the GlusterFS Volume Mount point and is the same on both servers
If I touch a file on Web-01 then the process is restarted on Web-01 but not Web-02 and vice-versa on Web-02. My question is, is this a GlusterFS issue not raising the event on both servers or is this PM2 not seeing a change if it didn't originate on that server?
I have been using DEBUG="pm2:watch" and no events are raised on the 'other' server but are on the server that the touch was done from.
Let me know if you need anything else.
Thanks!
The text was updated successfully, but these errors were encountered: