-
Notifications
You must be signed in to change notification settings - Fork 2.5k
PoolСluster auto-restore node #906
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
Conversation
node.online = false; | ||
this.emit('offline', node.id); | ||
|
||
setTimeout(function() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Timeout will hold the event loop open and there is no way for the user to cancel this timeout. Please fix this so a user can close their pools and allow the event loop to stop.
@dougwilson, can you please check this PR again? I'd like to use this feature in production. |
122fc22
to
dc0d600
Compare
Sure, no problem. Sorry, GitHub does not like email or notify me when the PR is updated by a new commit (damn you GitHub, lol). |
I don't want you to think I'm ignoring you here :) I'm on vacation right now, so I'm just working through this a little slower than normal is all. |
Don't worry, everything's fine :) Thank you for contributing such useful module! It's great! |
Hi! @dougwilson, do you have any plans about 2.6 release? |
Yes! I plan to get it out the door sometime this weekend, including this PR in it, of course, unless something crazy happens. |
It will be great 👍 |
@dougwilson, should I wait for this fix? |
+1 |
Sorry for the delay :( This PR is marked for the 2.6 milestone and I'm currently working through merging them all. |
@@ -8,5 +8,6 @@ npm-debug.log | |||
/test/config.js | |||
|
|||
*.sublime-* | |||
.idea |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove this; really, editor-specific entries belong in your global ignore list.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will remove this line, and sublime-specific things too 😃 OK?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just went ahead and cleaned up the file on master
:)
Please test the version that has landed on |
I've tested pool cluster by shutting down mysql server nodes (I had 3 of them). Works well, but sometimes pool cluster emits a lot of |
I'll take a look into this. |
It happens when cluster is trying to restore node, but remote server still offline. |
Gotcha. Yes, I was able to determine the same. It's a limitation unless the |
#880