-
Notifications
You must be signed in to change notification settings - Fork 9
Not safe for running in a node cluster (like PM2) #36
Comments
Interesting. We've not seen this edge case with node cluster & UDP itself. Sorry about that, you should look into using a different statsd client or not using cluster. At Uber, we do not use cluster. |
I updated the README with a caveat, thanks for pointing this out. |
Just to clarify... their is a way to use UDP... as npm node-statsd doesn't seem to cause this issue (at least anymore). I will dig in deeper when i get time and report back. Thanks for putting this buffered statsd library together. I definitely had less packets dropped when i was running it (unclustered). |
@blak3r2 looks like the issue is that @blak3r2 I suspect that if you use a module like You could also tweak the |
Hi @Raynos I just wanted to thank you for your reply! I am not sure that is quite it because we would have been sending a flood of packets. |
Learned the hardway today that this will crash PM2.
There is a bug in node related to UDP and I believe this is the issue.
nodejs/node-v0.x-archive#9261
I do not know why this statsd client causes it but the node-statsd one does not.
I wanted to post here before I forget in case it helps others.
The text was updated successfully, but these errors were encountered: