Erlang / MNesia で開発されたアプリケーションがあり、MNesia の冗長性を実装しようとしています。
追加したい-実行時にノードを動的に削除し、新しい参加ノードごとにテーブルの同期を処理します。
Erlang と MNesia を使用してこれを実装する最良の方法は何ですか?
ありがとう。
Erlang / MNesia で開発されたアプリケーションがあり、MNesia の冗長性を実装しようとしています。
追加したい-実行時にノードを動的に削除し、新しい参加ノードごとにテーブルの同期を処理します。
Erlang と MNesia を使用してこれを実装する最良の方法は何ですか?
ありがとう。
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.