ejabberd - Comments for "Failover HA behaviour" https://www.ejabberd.im/node/1614 en The table 'passwd' must be replicated in each node. https://www.ejabberd.im/node/1614#comment-52416 <div class="quote-msg"> <div class="quote-author"><em>TFerguson</em> wrote:</div> <p>if the first (primary) node is offline, I cannot log in to my ejabberd domain via the second (secondary) node. Is this the intended behavior, or should secondary nodes still be able to operate (as an ejabberd server) in the event the primary node is down?</p></div> <p>The ejabberd Guide says:</p> <blockquote><p> Now you can add replicas of various tables to this node with `mnesia:add_table_copy' or `mnesia:change_table_copy_type' as above (just replace `schema' with another table name and `disc_copies' can be replaced with `ram_copies' or `disc_only_copies').</p> <p>Which tables to replicate is very dependant on your needs, you can get some hints from the command `mnesia:info().', by looking at the size of tables and the default storage type for each table on 'first'.</p> <p>Replicating a table makes lookups in this table faster on this node. Writing, on the other hand, will be slower. And of course if machine with one of the replicas is down, other replicas will be used.</p></blockquote> <p>If you didn't instruct Mnesia @ node2 to replicate the table 'passwd' from node1, then you can only login in node2 when node1 is available.</p> <p>If you already configured Mnesia @ node2 to replicate the table 'passwd' from node1, then I don't have clues of where is the problem.</p> Sun, 18 May 2008 17:49:39 +0000 mfoss comment 52416 at https://www.ejabberd.im Clarification Question on ejabberd Clustering https://www.ejabberd.im/node/1614#comment-52405 <p>I have two machines set up in an ejabberd cluster, and everything works as advertised when they are both online. However, if the first (primary) node is offline, I cannot log in to my ejabberd domain via the second (secondary) node. Is this the intended behavior, or should secondary nodes still be able to operate (as an ejabberd server) in the event the primary node is down? When I look at the databases for each node in the Web Admin, they are identical for each node, which I assumed meant they were operating independently, but with replication of the tables. It's like it is looking for something for authentication that only exists on the primary server??</p> <p>If this is not the intended behavior, are there any clues for where I can begin to look for misconfiguration? I don't see anything that looks out of order in the logs, etc. I have no hacks to my setup, just used the standard config with the clustering setup instructions in the doc.</p> <p>TIA -TF</p> <p>*******************************<br /> ejabberd 2.0.0 on OpenSuSE 10.2</p> Fri, 16 May 2008 17:20:53 +0000 TFerguson comment 52405 at https://www.ejabberd.im What do you mean ? The https://www.ejabberd.im/node/1614#comment-28843 <p>What do you mean ?</p> <p>The cluster in ejabberd is top notch and I doubt you can do better with some quick hack ...</p> <p>--<br /> Mickaël Rémond<br /> <noindex><a href="http://www.process-one.net/" rel="nofollow" >Process-one</a></noindex></p> Tue, 17 Jul 2007 15:38:05 +0000 mremond comment 28843 at https://www.ejabberd.im Thanks - seems like I will https://www.ejabberd.im/node/1614#comment-28449 <p>Thanks - seems like I will have to make my own arrangements!</p> Tue, 17 Jul 2007 13:48:00 +0000 S.T.E.N.C.H. comment 28449 at https://www.ejabberd.im ejabberd nodes in a cluster https://www.ejabberd.im/node/1614#comment-26168 <p>ejabberd nodes in a cluster can share some tables of the database: accounts (username and password), roster, offline messages, vcard... </p> <p>Each node has his own client and server connections. When a node crashes, all his connections are lost. </p> <p>I don't know what will happen with messages in the flight.</p> Fri, 06 Jul 2007 11:06:16 +0000 mfoss comment 26168 at https://www.ejabberd.im