diff options
author | Igor Ribeiro Sucupira <[email protected]> | 2010-01-10 03:37:34 -0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2010-02-02 12:18:23 +0100 |
commit | 3757d8fb1dfd1ff9b80aed2376070b5c4888aaba (patch) | |
tree | b45c518db1277d723c6d7b69bb00fd960c93a970 /lib/mnesia/src/mnesia.erl | |
parent | 36c0041ea56d915ba9a2259cc918fca76b8c08f9 (diff) | |
download | otp-3757d8fb1dfd1ff9b80aed2376070b5c4888aaba.tar.gz otp-3757d8fb1dfd1ff9b80aed2376070b5c4888aaba.tar.bz2 otp-3757d8fb1dfd1ff9b80aed2376070b5c4888aaba.zip |
Add option to compress data when copying tables between Mnesia nodes
Optionally using data compression for copying Mnesia tables allows
the system to be tuned to eliminate network bottlenecks from
deployments where enough CPU is available to use zlib.
With this patch, running erl -mnesia send_compressed <level>
will enable compression for sending tables between nodes. The
compression level can be any integer in [0, 9], with 0 (the
default) meaning no compression (exactly the previous behaviour)
and 9 being the highest compression level.
To set any non-zero compression level at the sender, both nodes
must have the updated Mnesia modules (the receiver will work
according to the sender's configuration).
Diffstat (limited to 'lib/mnesia/src/mnesia.erl')
-rw-r--r-- | lib/mnesia/src/mnesia.erl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/mnesia/src/mnesia.erl b/lib/mnesia/src/mnesia.erl index 9a630f18eb..c9599a1911 100644 --- a/lib/mnesia/src/mnesia.erl +++ b/lib/mnesia/src/mnesia.erl @@ -2200,6 +2200,7 @@ system_info2(transaction_log_writes) -> mnesia_dumper:get_log_writes(); system_info2(core_dir) -> mnesia_monitor:get_env(core_dir); system_info2(no_table_loaders) -> mnesia_monitor:get_env(no_table_loaders); system_info2(dc_dump_limit) -> mnesia_monitor:get_env(dc_dump_limit); +system_info2(send_compressed) -> mnesia_monitor:get_env(send_compressed); system_info2(Item) -> exit({badarg, Item}). @@ -2244,6 +2245,7 @@ system_info_items(yes) -> core_dir, no_table_loaders, dc_dump_limit, + send_compressed, version ]; system_info_items(no) -> |