how do I remove an extra node

后端 未结 4 1566
你的背包
你的背包 2021-02-04 13:25

I have a group of erlang nodes that are replicating their data through Mnesia\'s \"extra_db_nodes\"... I need to upgrade hardware and software so I have to detach some nodes as

4条回答
  •  野的像风
    2021-02-04 14:09

    I wish I had found this a long time ago: http://weblambdazero.blogspot.com/2008/08/erlang-tips-and-tricks-mnesia.html

    basically, with a properly functioning cluster....

    • login to the cluster to be removed

    • stop mnesia

      mnesia:stop().
      
    • login to a different node on the cluster

    • delete the schema

      mnesia:del_table_copy(schema, node@host.domain).
      

提交回复
热议问题