私はクラスタ内で2つのerlang MNESIAノードを実行しています。mnesiaの断片にレコードをどのように配布するのですか?
以下のプロパティでテーブルを作成しました。
mnesia:create_table(vmq_offline_store,[
{frag_properties,[
{node_pool,[node()|nodes()]},
{hash_module,verneDB_frag_hash},
{n_fragments,8},
{n_disc_only_copies,length([node()|nodes()])}]
},
{index,[]},{type, bag},
{attributes,record_info(fields,vmq_offline_store)}]).
2つのerlangノードで作成された8つのフラグメントすべてを見ることができました。
この後、外部ノードからのRPC呼び出しを使用して50000レコードをテーブルに挿入しました。これらの50000レコードはvmq_offline_storeにのみ挿入されました。すべてのフラグメントにわたって配布されません。
vmq_offline_store: with 50000 records occupying 2096701142 bytes on disc
vmq_offline_store_frag2: with 0 records occupying 5464 bytes on disc
vmq_offline_store_frag3: with 0 records occupying 5464 bytes on disc
vmq_offline_store_frag4: with 0 records occupying 5464 bytes on disc
vmq_offline_store_frag5: with 0 records occupying 5464 bytes on disc
vmq_offline_store_frag6: with 0 records occupying 5464 bytes on disc
vmq_offline_store_frag7: with 0 records occupying 5464 bytes on disc
vmq_offline_store_frag8: with 0 records occupying 5464 bytes on disc
フラグメントにレコードを配布する方法を教えてください。