开发者

Erlang: MNesia: Implementing redundancy?

I have an application developed with Erlang / MNesia and I am trying to implement re开发者_StackOverflowdundancy for MNesia.

I want to add - remove nodes dynamically in runtime and handle synchronization of tables for every new joining node.

What is the best way to implement this using Erlang and MNesia?

Thanks.


You don't need to implement anything - mnesia already has these features. You can add and remove nodes from a mnesia cluster at runtime, add and remove table copies from nodes within the cluster, and mnesia:wait_for_tables/2 will let you cope with synchronization while adding nodes or table copies. Have a look at the mnesia documentation for more information.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜