Erlang - Configuration
erl -mnesia dir '"mnesia/data/files/dir"'
-mnesia dc_dump_limit 4
-mnesia dump_log_write_threshold 100
-mnesia dump_log_time_threshold 180000
mnesia settings, please refer to the mnesia application docs.
[transaction log -> table log -> table file]
- make "dc_dump_limit" larger (practical), means make disc_copies table log dump more often
- make "dump_log_write_threshold" larger (practical), means make transaction log dump less often
- "dump_log_time_threshold" can be set less if the "dump_log_write_threshold" is too large and you are worrying transaction log will rarely get dumped when there’s very few writes occuring.
erl -env ERL_MAX_ETS_TABLES 1400
The number of tables stored at one Erlang node is limited. The current default limit is approximately 1400 tables. The upper limit can be increased by setting the environment variable ERL_MAX_ETS_TABLES before starting the Erlang runtime system (i.e. with the -env option to erl/werl). The actual limit may be slightly higher than the one specified, but never lower.