Ejabberd Clustering with MySQL database

Dear forum members,

I have the following scenario:

I have two ejabberd instances setup to perform as a cluster. Both ejabberd instances connect to a single MySQL Backend server.

I have installed the two ejabberd instances for clustering by also copying the .erlang.cookie file from one machine to other. (from mac1 to mac2). both machines now have the same .erlang.cookie file in $HOME directory. my $HOME is /root, as i am running the instances as root. Till now all is fine..

But I am stuck when I actually want to do "Clustering Setup" after installation and .erlang.cookie file copy. I referred to ejabberd doc pdf section: "6.2 Clustering Setup". But it talks about running erl and using mnesia for clustering. we are not using mnesia as a db for ejabberd [ and the section {auth_method, internal} is also commented]. How do I do the clustering for MySQL??

I would appreciate your suggestions..

Thank you,
Vishal

vishalmk wrote: Both ejabberd

vishalmk wrote:

Both ejabberd instances connect to a single MySQL Backend server.
we are not using mnesia as a db for ejabberd

You must understand this: you can configure ejabberd to use MySQL for storing some user information, like roster, offline messages... But in any case, ejabberd still uses Mnesia to store other information.

You already solved the clustering of the MySQL tables: both nodes connect to the same MySQL database. Now you must deal with the clustering of some other Mnesia tables: by following the steps in the guide.

Syndicate content