How to check master node?
tamtakoe opened this issue · 4 comments
tamtakoe commented
I see isMaster
in initial event payload. So I assume that Cote based on Raft-like alghoritm and one node should be a lider. Does it possible to check isMaster
status inside a node? It is really useful feature if I want to periodically grab data from the database on the master node and distribute it to the slaves nodes.
dashersw commented
cote is a true mesh network, in that there are no masters or slaves.
tamtakoe commented
Hmm... What does isMaster
mean?
dashersw commented
It is a residue of an underlying library, node-discover, which would be used for your purpose. You might want to look into node-discover for what you want.
tamtakoe commented
I will see, thanks for advice!