ERLANG - HOW TO JOIN EJABBERD CLUSTER ??

Tarun Kumar

Total Post:214

Points:1642
Posted by  Tarun Kumar
erlang 
 843  View(s)
Ratings:
Rate this:
I have two nodes like ejabberd_node1 and ejabberd_node2.
Please tell me how can I join Ejabberd clusters between both nodes.

Thanks!
  1. Sunil Singh

    Post:31

    Points:225
    Re: Erlang - How to join Ejabberd cluster ??

    configration setp for ejabberd clustering-

    1-ejabberd have enabled these four modules-


        router,


        local router,


        session manager,


        s2s manager.


    2- All ejabberd node  must have the same magic cookie (so set it).


    3-ejabberdctl.cfg change the following line-

    #INET_DIST_INTERFACE=127.0.0.1 to


    INET_DIST_INTERFACE=104.10.120.122 (whatever your host public ip)


    4- enter the following command on erlang console-

       net_adm:ping('ejabberd@ejabberd1').

    if it will return pong now you can do cluster between  ejabberd nodes.

    5- run the following command to make cluster-

    ejabberdctl join_cluster 'ejabberd@ejabberd1'

    check this link for detail configuration- https://docs.ejabberd.im/admin/guide/clustering/


      Modified On Apr-30-2016 09:42:46 PM

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!