ejabberd - Comments for "Ejabberd with MySQL" https://www.ejabberd.im/node/4126 en Can u tell me then, how can i https://www.ejabberd.im/node/4126#comment-56341 <p>Can u tell me then, how can i rerun mnesia replication? If mnesia:start(). in erlang console would be enough? I just want to cluster to work. What for is the command like this </p> <p>erl -sname ejabberd -mnesia dir "'/var/lib/ejabberd/'" -mnesia extra_db_nodes "['ejabberd@some-host']" -s mnesia</p> <p>in every tutorial it is said, that you have to execute this kind of command, but they say nothing about why and about parameters.</p> <p>And one more question: how can i achieve autoreconnect after few-minutes network crash?</p> <p>Thanks in advance!</p> Fri, 02 Jul 2010 08:45:57 +0000 n3ck comment 56341 at https://www.ejabberd.im No https://www.ejabberd.im/node/4126#comment-56336 <div class="quote-msg"> <div class="quote-author"><em>n3ck</em> wrote:</div> <p>if it's possible to disable mnesia totaly, and use only mysql for all data-storage purposes?</p></div> <p>Not possible.</p> Thu, 01 Jul 2010 09:56:14 +0000 mfoss comment 56336 at https://www.ejabberd.im Thanks for your reply, i have https://www.ejabberd.im/node/4126#comment-56335 <p>Thanks for your reply, i have one main question: if it's possible to disable mnesia totaly, and use only mysql for all data-storage purposes?</p> <p>I guess that session synchronizing and other cluster-like stuffs are independent of either mnesia and MySQL? My nodes after short network switch restart are not syncing anymore and i don't know why after one connection error stoped trying?</p> Thu, 01 Jul 2010 07:54:54 +0000 n3ck comment 56335 at https://www.ejabberd.im n3ck wrote: My configuration https://www.ejabberd.im/node/4126#comment-56312 <div class="quote-msg"> <div class="quote-author"><em>n3ck</em> wrote:</div> <p>My configuration says, that some modules are using odbc, and some does not.<br /> If ejabberd is using MySQL as backend, the mnesia database is still required? </p></div> <p>You are using SQL storage for (A), the tables that usually consume more space: roster, offline, last...<br /> Other tables (B) consume few space and are changed frequently, so those are always stored in Mnesia.</p> <div class="quote-msg"> <div class="quote-author"><em>n3ck</em> wrote:</div> <p>most copies of tables are only remote accessible.<br /> The list of files in mnesia database dir on node1 is pretty long compared with list of files on other nodes.<br /> node2 and node3 mnesia dir contains only files named DECISION_TAB.LOG LATEST.LOG schema.DAT.<br /> What about this diffrience in mnesia data dir files list? </p></div> <p>This means that node2 gets tables (A) from SQL. Gets tables (B) from the remote node1,<br /> and keeps only a copy in RAM, not in disk.</p> <div class="quote-msg"> <div class="quote-author"><em>n3ck</em> wrote:</div> <p>Another question is, if my MySQL replication works well, what if node1 fails?<br /> Will other nodes would work with no problem? </p></div> <p>If node2 has a table remote-only and can't connect to node1, then the table can't be read.<br /> You don't want this to happen.</p> <p>Interesting page: <noindex><a href="http://dev.esl.eu/blog/2009/12/11/ejabberd-cluster-database-configuration/" title="http://dev.esl.eu/blog/2009/12/11/ejabberd-cluster-database-configuration/" rel="nofollow" >http://dev.esl.eu/blog/2009/12/11/ejabberd-cluster-database-configuration/</a></noindex></p> Tue, 29 Jun 2010 10:19:57 +0000 mfoss comment 56312 at https://www.ejabberd.im