%% Mandatory: adjust this code path to top of your compiled Machi source distro {code_paths, ["/Users/fritchie/b/src/machi"]}. {driver, machi_basho_bench_driver}. %% Chose your maximum rate (per worker proc, see 'concurrent' below) %{mode, {rate,10}}. %{mode, {rate,20}}. {mode, max}. %% Runtime & reporting interval (seconds) {duration, 10}. {report_interval, 1}. %% Choose your number of worker procs %{concurrent, 1}. {concurrent, 5}. %{concurrent, 10}. %% Here's a chain of (up to) length 3, all on localhost {machi_server_info, [ {p_srvr,a,machi_flu1_client,"localhost",4444,[]}, {p_srvr,b,machi_flu1_client,"localhost",4445,[]}, {p_srvr,c,machi_flu1_client,"localhost",4446,[]} ]}. {machi_ets_key_tab_type, set}. % set | ordered_set %% Workload-specific definitions follow.... %% 10 parts 'append' operation + 0 parts anything else = 100% 'append' ops {operations, [{append, 10}]}. %% For append, key = Machi file prefix name {key_generator, {concat_binary, <<"prefix">>, {to_binstr, "~w", {uniform_int, 30}}}}. %% Increase size of value_generator_source_size if value_generator is big!! {value_generator_source_size, 2111000}. {value_generator, {fixed_bin, 32768}}. % 32 KB %{value_generator, {fixed_bin, 1048576}}. % 1024 KB