<div dir="ltr">Dear all,<div>I'm trying to run an operation only once on cluster start but there's clearly something that I'm missing in the <font face="monospace">global</font> module (see other related question here [1]).<div><br></div><div>Therefore this time I'm trying to have a single global <font face="monospace">gen_server</font> which I start directly from application <font face="monospace">start/2</font> callback with:<br><font face="monospace">gen_server:start_link({global, ?MODULE}, ?MODULE, [], Options).</font><br></div><div><br></div><div>Nodes are already connected at that point (I can see them with <font face="monospace">nodes()</font>), however for some reason this registration works on all the nodes and I find myself with multiple <font face="monospace">gen_server</font> registered globally.</div><div><br></div><div>What is the proper way to register a global singleton <font face="monospace">gen_server</font> at cluster level on application start? mY need is to run an operation only _once_ a cluster boots up.</div><div><br></div><div>[1] <a href="http://erlang.org/pipermail/erlang-questions/2021-December/101781.html">http://erlang.org/pipermail/erlang-questions/2021-December/101781.html</a></div></div></div>