I am new to emqtt and erlang. Using the documentation provided in emqtt.io I configured the emqtt in my machine and wanted to create a cluster. I followed the steps given below to create a node
erl -name [email protected]
erl -name [email protected]
And to connect these nodes i used the below command.
([email protected])1> net_kernel:connect_node('[email protected]')
I am not getting any response(true or false) after executing this command.
Also I tried the following command
./bin/emqttd_ctl cluster [email protected]
but got a failure message
Failed to join the cluster: {node_down,'[email protected]'}
When I hit the URL localhost:8080/status I am getting the following message
Node [email protected] is started
emqttd is running
But i couldn't get any details about the cluster.
Am I following the right steps?. Need help on the creation of cluster in emqtt.
Thanks in advance!!
For each node that is created in a machine a separate process is initiated and on creating many bodes will finally end up with using the memory the most which leads to a situation where you will not be able to join any nodes in a cluster. Hence to join we have to stop the nodes that are not in use using the ./emqttd stop command