wankdanker / node-discover

Automatic and decentralized discovery and monitoring of nodejs instances with built in support for a variable number of master processes, service advertising and channel messaging.
229 stars 59 forks source link

Dynamically adding nodes to unicast cluster #31

Open itsJess1ca opened 7 years ago

itsJess1ca commented 7 years ago

Hi, I'm trying to use this for a current project and was wondering if it's possible to dynamically add a new node to a unicast cluster.

I've been trying for a little while to no luck, it seems I can update the destination lists but the node its self isn't added to the node list of all the siblings.

Any advice would be great, thanks!

zxfrank commented 3 years ago

Have you found anything?

wankdanker commented 3 years ago

I think it might be possible, but it's really difficult to test locally without some modifications. And it would involve modifying an internal data structure which might not be forward compatible.

This branch has the necessary changes and an example on how this might be done.