0

Erlang / MNesia で開発されたアプリケーションがあり、MNesia の冗長性を実装しようとしています。

追加したい-実行時にノードを動的に削除し、新しい参加ノードごとにテーブルの同期を処理します。

Erlang と MNesia を使用してこれを実装する最良の方法は何ですか?

ありがとう。

4

1 に答える 1

3

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.

于 2010-11-18T23:04:41.363 に答える