ejabberd - Comments for "Clustering, HA, and Mnesia.." https://www.ejabberd.im/node/4054 en rnkrygt wrote: Is there any https://www.ejabberd.im/node/4054#comment-55764 <div class="quote-msg"> <div class="quote-author"><em>rnkrygt</em> wrote:</div> <p>Is there any other workaround i can do for it ? ( Although i am not sure if they can find each other just using the same erlang-cookie file... ) Or is it the main thing that makes machines know about each other?</p> <p>If this is the only way, what happens when ejabberd-1.localdomain fails? </p></div> <p>You can try to add in extra_db_nodes all the other nodes in the cluster, not just the one you consider the 'master'. Also, if each node has a local copy of each table, when one node (or a group of nodse) become isolated from the other nodes, they can still continue working. Of course, the tables content of the different nodes will start to diverge.</p> <div class="quote-msg"> <div class="quote-author"><em>rnkrygt</em> wrote:</div> <p>How do we change one of the existing machines to take that role again? </p></div> <p>ejabberd 2.1.3 has this command:</p> <pre> $ ejabberdctl help set_master Command Name: set_master Arguments: nodename::string Returns: res::restuple Tags: mnesia Description: Set master node of the clustered Mnesia tables If you provie as nodename "self", this node will be set as its own master. </pre><p> So, in the node you consider the master you run:</p> <pre> $ ejabberdctl set_master self </pre><p> And in the other nodes:</p> <pre> $ ejabberdctl set_master ejabberd@ejabberd-1.localdomain </pre> Mon, 17 May 2010 09:47:42 +0000 mfoss comment 55764 at https://www.ejabberd.im