ejabberd - Comments for "help:cluster ejabberd with mysql!" https://www.ejabberd.im/node/1590 en badlop help me. https://www.ejabberd.im/node/1590#comment-20671 <p>Now we have install the ejabberd again with the bin file and do not use mysql.<br /> but we still can not follow the installation guide.<br /> After we use the 'sudo erl -sname ejabberd' command to enter the erlang shell, the command "erlang:get_cookie()." returns a string not "ejabberd".<br /> but badlop you have said that if we use the bin file to install the ejabberd, the cookie should be "jeabberd". Are there anyother place where setcookie beside the ejabberdctl file?</p> Wed, 20 Jun 2007 06:42:22 +0000 Jeff comment 20671 at https://www.ejabberd.im Without the .erlang.cookie file https://www.ejabberd.im/node/1590#comment-19911 <p>Without the .erlang.cookie file what shall we do with the first step in the Clustering Setup in ejabberd installation guide.<br /> For we use the bin file to install the ejabberd, so we don't have the .erlang.cookie file in our ejabberd directory, badlop said in this condition our cookie is 'ejabberd'. Does it mean we do not need to copy the cookie file to the second server and we also do not need to add the '-cookie content_of_.erlang.cookie' option in our erl command.</p> <p>without the first step 1, if we run the step 2 and running the 'mnesia:info().' command, we can not see the running db nodes = [ejabberd@first,ejabberd@second]<br /> we only can see the running db nodes = [ejabberd@second]<br /> the stop db nodes = [ejabberd@first]<br /> what shall we do next<br /> Are there anyone who can give us a detail guide step by step.<br /> Thx a lot.</p> Wed, 20 Jun 2007 01:27:51 +0000 Jeff comment 19911 at https://www.ejabberd.im On your case, some tables https://www.ejabberd.im/node/1590#comment-20560 <p>On your case, some tables are stored on the mysql db you configure on the ejabberd nodes. The rest of the tables are stored on mnesia. Some of those mnesia tables must be replicated on all nodes, for consistency reasons. Use the ejabberd guide to configure mnesia to replicate such tables.</p> Tue, 19 Jun 2007 16:03:40 +0000 mfoss comment 20560 at https://www.ejabberd.im We used mysql instead of https://www.ejabberd.im/node/1590#comment-19912 <p>We used mysql instead of mnesia, so we can not find guide in ejabberd guide doc. I am wondering if we realy clustered these two server or just make them use the same database.</p> Tue, 19 Jun 2007 09:22:15 +0000 Jeff comment 19912 at https://www.ejabberd.im I think the Mnesia table https://www.ejabberd.im/node/1590#comment-19910 <p>I think the Mnesia table 'session' is used by ejabberd to know if a user is logged, and where he is logged (at which node). </p> <p>You can try to configure this table to be replicated. Check ejabberd guide, section 'clustering setup'.</p> Tue, 19 Jun 2007 09:10:26 +0000 mfoss comment 19910 at https://www.ejabberd.im