summaryrefslogtreecommitdiff
path: root/src/rabbit_control.erl
diff options
context:
space:
mode:
authorEmile Joubert <emile@rabbitmq.com>2011-08-17 12:25:14 +0100
committerEmile Joubert <emile@rabbitmq.com>2011-08-17 12:25:14 +0100
commit5741ad0382901ef0c57f957446e8ba38f1ba5f19 (patch)
tree761c24a673df02e9fd17913e557dc0d4f47c5ba3 /src/rabbit_control.erl
parent5a8b09461be33b98dce687233d7b465a3247868b (diff)
downloadrabbitmq-server-5741ad0382901ef0c57f957446e8ba38f1ba5f19.tar.gz
Change vm_memory_high_watermark while running
Diffstat (limited to 'src/rabbit_control.erl')
-rw-r--r--src/rabbit_control.erl5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rabbit_control.erl b/src/rabbit_control.erl
index e8afed0c..b386e338 100644
--- a/src/rabbit_control.erl
+++ b/src/rabbit_control.erl
@@ -324,6 +324,11 @@ action(trace_off, Node, [], Opts, Inform) ->
Inform("Stopping tracing for vhost ~p", [VHost]),
rpc_call(Node, rabbit_trace, stop, [list_to_binary(VHost)]);
+action(set_vm_memory_high_watermark, Node, [Arg], _Opts, Inform) ->
+ Frac = list_to_float("0" ++ Arg),
+ Inform("Setting memory threshhold on ~p to ~p", [Node, Frac]),
+ rpc_call(Node, vm_memory_monitor, set_vm_memory_high_watermark, [Frac]);
+
action(set_permissions, Node, [Username, CPerm, WPerm, RPerm], Opts, Inform) ->
VHost = proplists:get_value(?VHOST_OPT, Opts),
Inform("Setting permissions for user ~p in vhost ~p", [Username, VHost]),