Skip to content

Instantly share code, notes, and snippets.

@drewkerrigan
Created April 21, 2014 19:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drewkerrigan/11154437 to your computer and use it in GitHub Desktop.
Save drewkerrigan/11154437 to your computer and use it in GitHub Desktop.
{mode, max}.
{duration, 10}.
{report_interval,1}.
{concurrent, 10}.
{driver, basho_bench_driver_riakc_pb}.
{key_generator, {int_to_bin_bigendian, {sequential_int, 10000}}}.
{value_generator, {fixed_bin, 10000}}.
{riakc_pb_ips, [{127,0,0,1}]}.
{riakc_pb_replies, 1}.
%%% {operations, [{get, 1}]}.
{operations, [{put, 1}]}.
%% Use {auto_reconnect, false} to get "old" behavior (prior to April 2013).
%% See deps/riakc/src/riakc_pb_socket.erl for all valid socket options.
{pb_connect_options, [{auto_reconnect, true}]}.
%% Overrides for the PB client's default 60 second timeout, on a
%% per-type-of-operation basis. All timeout units are specified in
%% milliseconds. The pb_timeout_general config item provides a
%% default timeout if the read/write/listkeys/mapreduce timeout is not
%% specified.
{pb_timeout_general, 30000}.
{pb_timeout_read, 5000}.
{pb_timeout_write, 5000}.
{pb_timeout_listkeys, 50000}.
%% The general timeout will be used because this specific item is commented:
%% {pb_timeout_mapreduce, 50000}.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment