Permalink
Browse files

Better examples and more useful error output.

  • Loading branch information...
Jesse Williamson
Jesse Williamson committed May 9, 2013
1 parent 68d1335 commit 6372f91fee829086e67e12d25fe1735675883090
Showing with 4 additions and 4 deletions.
  1. +4 −4 contrib/handoff_perftool.erl
@@ -4,9 +4,9 @@
%% Usage example (in the Erlang shell):
%%
%% code:add_path("/home/user/path-to-handoff_perftool"), l(handoff_perftool).
-%% handoff_perftool:go({10000, 1000}).
-%% handoff_perftool:go(5, {10000, 1000}).
-%% handoff_perftool:go(1, {10000, 1000}, strategy_roundrobin).
+%% handoff_perftool:go({10000, 1000}). % use 10000 objects of 1000 bytes each
+%% handoff_perftool:go(5, {10000, 1000}). % use 5 vnodes and 10000 objects of 1000 bytes each
+%% handoff_perftool:go(1, {10000, 1000}, strategy_roundrobin). % 1 vnode, 10k objects of 1k each, round-robin strategy
%%
-module(handoff_perftool).
@@ -85,7 +85,7 @@ gather_vnodes_1(NVnodes) ->
Secondaries = get_secondaries(),
case length(Secondaries) >= NVnodes of
- false -> erlang:throw("Insufficent vnodes for requested test");
+ false -> erlang:throw("Insufficent vnodes for requested test (have ~p secondaries, require ~p)", [length(Secondaries), NVnodes]);
true -> true
end,

0 comments on commit 6372f91

Please sign in to comment.