Skip to content
This repository was archived by the owner on Sep 25, 2019. It is now read-only.

fix(cluster): fix server outages due to cluster resource leakage #57

Merged
merged 1 commit into from
Oct 6, 2015

Conversation

Splaktar
Copy link
Contributor

Add initWorker() to server which should clean up worker resources on both disconnect and exit.
Reference nodejs/node-v0.x-archive#9409
Update JSHint for server and fix some issues including removing unused requires.
Add key entries for frisbee keys.
Remove some newRelic cruft.

Fixes #54.

Add initWorker() to server which should clean up worker resources on both disconnect and exit.
Reference nodejs/node-v0.x-archive#9409
Update JSHint for server and fix some issues including removing unused requires.
Add key entries for frisbee keys.
Remove some newRelic cruft.

Fixes #54.
@Splaktar Splaktar added the bug label Sep 28, 2015
@Splaktar Splaktar added this to the v0.1.0 milestone Sep 28, 2015
@Splaktar
Copy link
Contributor Author

Please review the changes to server.js but do not merge this until I see if this actually fixes the issue.

This has been deployed to production, but I will need to see the server run for over 4 days straight without crashing before I can have any feeling that this might actually fix the resource leak.

@tasomaniac
Copy link
Member

Looks good but I don't understand the part with the Frisbee client ids. They were used but not present? Could that be the reason that gcm registration was failing and we had to disable it in the app.

@Splaktar
Copy link
Contributor Author

There was an exception thrown by the server last night due to config.keys.frisbee not being defined when trying to look up config.keys.frisbee.serverClientId. There was nothing in the code, readme, or documentation about this config.keys.frisbee configuration. So it's a new thing to me that was apparently undocumented and only setup on the deployment VM in OpenShift.

@Splaktar
Copy link
Contributor Author

Splaktar commented Oct 2, 2015

Still online, hoping it makes it through the weekend...

@tasomaniac
Copy link
Member

👍

@Splaktar Splaktar changed the title [WIP] fix(cluster): fix server outages due to cluster resource leakage fix(cluster): fix server outages due to cluster resource leakage Oct 4, 2015
@Splaktar
Copy link
Contributor Author

Splaktar commented Oct 4, 2015

7 days now and the server is still up. Looks like this fix is working.

@tasomaniac
Copy link
Member

👍

On Mon, Oct 5, 2015, 2:49 AM Michael Prentice [email protected]
wrote:

7 days now and the server is still up. Looks like this fix is working.


Reply to this email directly or view it on GitHub
#57 (comment).

Splaktar added a commit that referenced this pull request Oct 6, 2015
fix(cluster): fix server outages due to cluster resource leakage
@Splaktar Splaktar merged commit 02a838d into develop Oct 6, 2015
@Splaktar Splaktar deleted the fixClusterResourceLeak branch October 6, 2015 03:22
@tasomaniac
Copy link
Member

👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Resource leak that brings down the Hub
3 participants