|
| 1 | +%% Sample config file for Riak CS basho_bench benchmarking |
| 2 | + |
| 3 | +%% About rate limiting via the `mode` setting: the `mode` rate is |
| 4 | +%% valid for the basho_bench_driver_cs plugin for `get` operations. |
| 5 | +%% The `mode` rate does *not* apply to `insert` operations. |
| 6 | +%% The driver does *not* support `update` operations |
| 7 | + |
| 8 | +{mode, max}. |
| 9 | +%{mode, {rate,4}}. |
| 10 | +{duration, 1}. |
| 11 | +{concurrent, 1}. |
| 12 | +{report_interval, 1}. |
| 13 | + |
| 14 | +{driver, basho_bench_driver_cs}. |
| 15 | + |
| 16 | +%% Replace this with a user you have created. |
| 17 | +%% Instructions to create a user are here: |
| 18 | +%% https://github.com/basho/riak_cs/wiki/Creating-a-User |
| 19 | +{cs_access_key, "ZG7SS3ZPECF-8LZOEBMA"}. |
| 20 | +{cs_secret_key, "21HoIRdeO617nJrIbam9mKH2MBxmcsMEwESvmQ=="}. |
| 21 | +{cs_bucket, "test"}. % create this with s3cmd before running basho_bench! |
| 22 | +{cs_disconnect_frequency, 5}. % # ops before disconnecting HTTP socket |
| 23 | +{cs_raw_ip, "s3.amazonaws.com"}. % DO NOT CHANGE |
| 24 | +{cs_raw_port, 80}. % DO NOT CHANGE |
| 25 | +%% Replace these with your HTTP proxy's location (i.e. Riak CS) |
| 26 | +{cs_http_proxy_host, [{"localhost", 8080}, {"127.0.0.1", 8080}, {{127,0,0,1}, 8080}]}. |
| 27 | +{cs_http_proxy_port, 8080}. |
| 28 | +{cs_request_timeout, 999999000}. |
| 29 | +% If using the cs_measurement_units option, you need to change |
| 30 | +% any R graph's labels of the Y axis, e.g. basho_bench's Makefile target |
| 31 | +% "make mbyte_sec-results" |
| 32 | +{cs_measurement_units, mbyte_sec}. |
| 33 | + |
| 34 | +{key_generator, {int_to_str, {partitioned_sequential_int, 1000}}}. |
| 35 | +%{key_generator, {int_to_str, {uniform_int, 1000}}}. |
| 36 | +%% See comments in source code for bigfile_valgen() function for full |
| 37 | +%% explanation of the proplist below. |
| 38 | +{value_generator, {function, basho_bench_driver_cs, bigfile_valgen, |
| 39 | + [[{file_size, 8001001}, |
| 40 | + {ibrowse_chunk_size, 1000000}, |
| 41 | + {max_rate_per_chunk, 50}]]}}. |
| 42 | + |
| 43 | +%% NOTE: It's not a good idea to mix insert & get ops in a single |
| 44 | +%% basho_bench instance with this driver. |
| 45 | +%% Use separate ones instead! |
| 46 | +%% bad idea: {operations, [{insert, 1}, {get, 1}]}. |
| 47 | +{operations, [{insert, 1}]}. |
| 48 | +%{operations, [{get, 1}]}. |
0 commit comments