<div dir="ltr">Disco filesystem gc involves a step in which a process builds an ets table on the master and<br>the slave nodes query this ets table regularly afterwards.<br>The ets table is owned by a gen_server which responds to the queries from the <br>
slaves using this ets table.<br><br>I am experimenting with using a mnesia table instead of this ets table so that <br>the gen_server is not involved in this operation (There are a lot of queries and<br>this master process is a bottleneck).<br>
This is a ram-only mnesia table which is created and then made read-only. All of<br>the operations use mnesia:dirty_* functions and the slave nodes never modify the<br>table.<br><br>1. Is this going to avoid the gen_server bottleneck?<br>
2. I am thinking of adding all of the nodes (master + slaves) as the ram-copies for<br>this table in order to have local lookups on the slave nodes.<br>Is this going to slow down the creation of the mnesia table? (as<br>said before, it is only using dirty_* functions for modifying the table).<br>
<br></div>