PySyncObj icon indicating copy to clipboard operation
PySyncObj copied to clipboard

Auto node discovery

Open MahmoodSeoud opened this issue 1 year ago • 2 comments

Hi,

Does this library support auto-node discovery? Meaning that if I were to insert a node into a cluster, I only have to provide one other peer. if not, is there a good example of how to incorporate this?

MahmoodSeoud avatar May 24 '24 06:05 MahmoodSeoud

It does not have a discovery of new nodes. It has ability to add new nodes dynamically, but the nodes should be discover by some other process and after discovery attached to a cluster using one of the following approach:

  1. Node could be added either from code
  2. Or using syncobj_admin

One of the approach to implement discovery is sending a multicast UDP packet in your local network and wait until response received from a new node. It would be cool to have a feature like this inside PySyncObj library, so if you could implement it we will accept PR.

bakwc avatar May 25 '24 16:05 bakwc

@bakwc how do you feel about using python-zeroconf to handle listening/broadcasting mUDP?

The implication is that we'd have a dependency on this project.

juliosandino avatar Mar 23 '25 03:03 juliosandino