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

cluster with nodes in the different subnets it is possible? #28

Open Jevin23 opened 7 years ago

Jevin23 commented 7 years ago

i think manually add ip-adresses of nodes from rancher-metadata (some service with node-list)

for example ip is dunamic and can be 10.42.185.29, 10.42.2.232, 10.42.69.231 ..

how i can add this nodes to cluster or make right broadcast ?

wankdanker commented 3 years ago

You can specify specific addresses with the unicast option, but that really disables the automatic discovery without extra event handling.

const Discover = require('node-discover');
const d = new Discover({
  unicast : ['10.42.185.29','10.42.2.232','10.42.69.231']
});