Ejabberd 2.0 clustering with MySQL?

Hello,

I have successfully configured 1 node to work with a MySQL database: my users are created in the DB, they can chat etc...
I now want to set up a second node to work in a cluster with the second one.

I have tried to follow the official tutorial but it seems to be targeted for a Mnesia clustering.
I have copied the erlang.cookie to the second node, I have set up the second node to connect to the same DB (which is on a remote machine)

The second node starts but it is clearly starting on its own not as part of a cluster.

Could anyone here help me or point me in the right direction?

Thanks a lot, any help would be greatly appreciated.
-Guillaume.

clustering is done at database level

The ejabberd nodes in the cluster are tied only by the database content:

  • If you use internal auth, mod_roster and mod_offline: you must setup Mnesia to replicate the tables: passwd, roster and offline_msg.
  • If you use internal auth, mod_roster_odbc and mod_offline_odbc: setup Mnesia to replicate the table: passwd. It is your duty to configure your SQL database so that roster and offline table content is available to all the nodes. For example, you can configure all the ejabberd nodes to connect to a specific SQL database.
  • If you use LDAP auth, mod_roster_odbc and mod_offline_odbc: it is your duty to configure your LDAP server and SQL database. For example, you can configure all the ejabberd nodes to connect to a specific LDAP server and a specific SQL database.
  • ... I guess you got the idea
Syndicate content