HOW TO REMOVE NODE FROM NODE GROUP IN ERLANG?

Ashish Pandey

Total Post:128

Points:898
Posted by  Ashish Pandey
erlang 
 550  View(s)
Ratings:
Rate this:

I am new in Erlang programming. My problem is how can I remove a particular node from the nodes group. The node I want to remove is replicating their data through Mnesia.
So please tell me how can I remove a node that still preserve the inserted data.
Thanks in advance.

  1. Tarun Kumar

    Post:214

    Points:1642
    Re: How to remove node from node group in Erlang?

    To remove paricular node from the node list. Follow the steps:
    * First of all, login to the cluster that you want to remove.
    * after that stop mnesia database:
      > mnesia: stop().
    * after that login from another node on the cluster.
    * now, you can delete the schema:
      > mnesia:del_table_copy(schema, nameOfNode@hostName.domainName).
    That's it.
    I hope above steps will be helpful for you.

      Modified On Mar-22-2016 01:22:04 AM

Answer

NEWSLETTER

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