<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On May 31, 2013, at 12:16 PM, Morgan Segalis wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Sergej,<div><br></div><div>Thank you for open source your work !!</div><div><br></div><div>In your read me, when you said : "<span style="color: rgb(51, 51, 51); white-space: pre-wrap; "><font face="Consolas">When you need to call a worker on another node, distreg will determine which node it should be running on and call it on that node.</font></span>"</div><div><br></div><div>How does it will determine in which node the process is, exactly ?</div><div><br></div></div></blockquote><div><br></div><div>Every worker has a name. Workers are spread throughout the cluster using consistent hashing. So it hashes the worker name, which results in the right node that the worker should be running on. It can happen that the worker is not actually running on that node (because nodes can go online/offline), but in that case the node will know the PID of the worker at least.</div><div><br></div><br><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><div>Le 31 mai 2013 à 12:04, Sergej Jurecko <<a href="mailto:sergej.jurecko@gmail.com">sergej.jurecko@gmail.com</a>> a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I've been meaning to open source this library. Now is a good of a time as any I guess. Maybe it fits your use case.<div><br></div><div><a href="https://github.com/biokoda/distreg">https://github.com/biokoda/distreg</a></div><div><br></div><div><br></div><div><br></div><div>Sergej Jurecko</div></div></blockquote></div><br></div></div></blockquote></div><br></body></html>