Skip to content

Commit 9c5785e

Browse files
authored
Merge pull request #226 from basho/mas-nhsallfound-d30
Mas nhsallfound d30
2 parents ea015da + 8ef7afe commit 9c5785e

25 files changed

+1604
-1565
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ package
88
.rebar
99
*~
1010
#*#
11-
11+
.DS_Store

examples/riakc_nhs.config

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{mode, max}.
2+
3+
{duration, 1440}.
4+
{report_interval, 10}.
5+
6+
{node_name, testnode1}.
7+
8+
{concurrent, 100}.
9+
10+
{driver, basho_bench_driver_nhs}.
11+
12+
%% Ignored by alwaysget and unique operations
13+
{key_generator, {eightytwenty_int, 100000000}}.
14+
15+
{value_generator, {semi_compressible, 5000, 3000, 5, 0.2}}.
16+
17+
%% For alwaysget operations what is:
18+
%% - the maximum number of keys per worker (max number of keys = this * concurrent)
19+
%% - whether the inserts should be in key_order, or whether the order should be skewed by a 1 byte hash at the head of the key
20+
{alwaysget, {600000, 1, skew_order}}.
21+
22+
{pb_ips, [{127,0,0,1}]}.
23+
{http_ips, [{127,0,0,1}]}.
24+
25+
{riakc_pb_replies, 1}.
26+
27+
{operations, [{alwaysget_pb, 612}, {alwaysget_updatewith2i, 192},
28+
{put_unique, 64}, {get_unique, 128},
29+
{postcodequery_http, 3}, {dobquery_http, 1}]}.
30+
31+
%% Use {auto_reconnect, false} to get "old" behavior (prior to April 2013).
32+
%% See deps/riakc/src/riakc_pb_socket.erl for all valid socket options.
33+
{pb_connect_options, [{auto_reconnect, true}]}.
34+
35+
%% Overrides for the PB client's default 60 second timeout, on a
36+
%% per-type-of-operation basis. All timeout units are specified in
37+
%% milliseconds. The pb_timeout_general config item provides a
38+
%% default timeout if the read/write/listkeys/mapreduce timeout is not
39+
%% specified.
40+
41+
{pb_timeout_general, 60000}.
42+
{pb_timeout_read, 10000}.
43+
{pb_timeout_write, 10000}.
44+
{pb_timeout_listkeys, 60000}.
45+
%% The general timeout will be used because this specific item is commented:
46+
%% {pb_timeout_mapreduce, 50000}.

examples/riakc_nhs_clinicals.config

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{mode, max}.
2+
3+
{duration, 1440}.
4+
{report_interval, 10}.
5+
6+
{node_name, testnode1}.
7+
8+
{concurrent, 100}.
9+
10+
{driver, basho_bench_driver_nhs}.
11+
12+
%% Ignored by alwaysget and unique operations
13+
{key_generator, {eightytwenty_int, 100000000}}.
14+
15+
{value_generator, {semi_compressible, 80000, 20000, 2, 0.1}}.
16+
17+
%% For alwaysget operations what is:
18+
%% - the maximum number of keys per worker (max number of keys = this * concurrent)
19+
%% - whether the inserts should be in key_order
20+
{alwaysget, {400000, 120000, skew_order}}.
21+
{unique, {7000, skew_order}}.
22+
23+
{pb_ips, [{127,0,0,1}]}.
24+
{http_ips, [{127,0,0,1}]}.
25+
26+
{riakc_pb_replies, 1}.
27+
28+
{operations, [{alwaysget_pb, 700}, {alwaysget_updatewith2i, 120},
29+
{put_unique, 70}, {get_unique, 110}]}.
30+
31+
%% Use {auto_reconnect, false} to get "old" behavior (prior to April 2013).
32+
%% See deps/riakc/src/riakc_pb_socket.erl for all valid socket options.
33+
{pb_connect_options, [{auto_reconnect, true}]}.
34+
35+
%% Overrides for the PB client's default 60 second timeout, on a
36+
%% per-type-of-operation basis. All timeout units are specified in
37+
%% milliseconds. The pb_timeout_general config item provides a
38+
%% default timeout if the read/write/listkeys/mapreduce timeout is not
39+
%% specified.
40+
41+
{pb_timeout_general, 60000}.
42+
{pb_timeout_read, 10000}.
43+
{pb_timeout_write, 10000}.
44+
{pb_timeout_listkeys, 60000}.
45+
%% The general timeout will be used because this specific item is commented:
46+
%% {pb_timeout_mapreduce, 50000}.

examples/riakc_nhs_general.config

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{mode, max}.
2+
3+
{duration, 2880}.
4+
5+
{report_interval, 10}.
6+
7+
{node_name, testnode1}.
8+
9+
{concurrent, 100}.
10+
11+
{driver, basho_bench_driver_nhs}.
12+
13+
%% Ignored by alwaysget and unique operations
14+
{key_generator, {eightytwenty_int, 100000000}}.
15+
16+
{value_generator, {semi_compressible, 8000, 2000, 10, 0.2}}.
17+
18+
%% For alwaysget operations what is:
19+
%% - the maximum number of keys per worker (max number of keys = this * concurrent)
20+
%% - whether the inserts should be in key_order
21+
{alwaysget, {1000000, 300000, skew_order}}.
22+
{unique, {8000, skew_order}}.
23+
24+
{pb_ips, [{127,0,0,1}]}.
25+
{http_ips, [{127,0,0,1}]}.
26+
27+
{riakc_pb_replies, 1}.
28+
29+
{operations, [{alwaysget_pb, 621}, {alwaysget_updatewith2i, 130},
30+
{put_unique, 90}, {get_unique, 130}, {delete_unique, 25},
31+
{postcodequery_http, 3}, {dobquery_http, 1}]}.
32+
33+
%
34+
35+
%% Use {auto_reconnect, false} to get "old" behavior (prior to April 2013).
36+
%% See deps/riakc/src/riakc_pb_socket.erl for all valid socket options.
37+
{pb_connect_options, [{auto_reconnect, true}]}.
38+
39+
%% Overrides for the PB client's default 60 second timeout, on a
40+
%% per-type-of-operation basis. All timeout units are specified in
41+
%% milliseconds. The pb_timeout_general config item provides a
42+
%% default timeout if the read/write/listkeys/mapreduce timeout is not
43+
%% specified.
44+
45+
{pb_timeout_general, 60000}.
46+
{pb_timeout_read, 10000}.
47+
{pb_timeout_write, 10000}.
48+
{pb_timeout_listkeys, 60000}.
49+
%% The general timeout will be used because this specific item is commented:
50+
%% {pb_timeout_mapreduce, 50000}.

examples/riakc_nhs_passive.config

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{mode, {rate, 10}}.
2+
3+
{duration, 1440}.
4+
5+
{report_interval, 10}.
6+
7+
{node_name, testnode1}.
8+
9+
{concurrent, 10}.
10+
11+
{driver, basho_bench_driver_nhs}.
12+
13+
%% Ignored by alwaysget and unique operations
14+
{key_generator, {eightytwenty_int, 100000000}}.
15+
16+
{value_generator, {semi_compressible, 8000, 2000, 10, 0.2}}.
17+
18+
%% For alwaysget operations what is:
19+
%% - the maximum number of keys per worker (max number of keys = this * concurrent)
20+
%% - whether the inserts should be in key_order
21+
{alwaysget, {240000, 100000, skew_order}}.
22+
{unique, {8000, skew_order}}.
23+
24+
{pb_ips, [{127,0,0,1}]}.
25+
{http_ips, [{127,0,0,1}]}.
26+
27+
{riakc_pb_replies, 1}.
28+
29+
{operations, [{alwaysget_pb, 4}, {alwaysget_updatewith2i, 600},
30+
{put_unique, 390}, {get_unique, 4},
31+
{postcodequery_http, 1}, {dobquery_http, 1}]}.
32+
33+
%% Use {auto_reconnect, false} to get "old" behavior (prior to April 2013).
34+
%% See deps/riakc/src/riakc_pb_socket.erl for all valid socket options.
35+
{pb_connect_options, [{auto_reconnect, true}]}.
36+
37+
%% Overrides for the PB client's default 60 second timeout, on a
38+
%% per-type-of-operation basis. All timeout units are specified in
39+
%% milliseconds. The pb_timeout_general config item provides a
40+
%% default timeout if the read/write/listkeys/mapreduce timeout is not
41+
%% specified.
42+
43+
{pb_timeout_general, 60000}.
44+
{pb_timeout_read, 10000}.
45+
{pb_timeout_write, 10000}.
46+
{pb_timeout_listkeys, 60000}.
47+
%% The general timeout will be used because this specific item is commented:
48+
%% {pb_timeout_mapreduce, 50000}.

examples/riakc_pb.config

+15-7
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,30 @@
11
{mode, max}.
22

33
{duration, 10}.
4-
{report_interval,1}.
4+
{report_interval, 1}.
55

66
{concurrent, 10}.
77

88
{driver, basho_bench_driver_riakc_pb}.
99

10-
{key_generator, {int_to_bin_bigendian, {uniform_int, 10000}}}.
10+
{key_generator,
11+
{concat_binary,
12+
{base64,
13+
{int_to_bin_bigendian,
14+
{pareto_int, 200000000}
15+
}
16+
},
17+
<<>>}
18+
}.
1119

12-
{value_generator, {fixed_bin, 10000}}.
20+
{value_generator, {semi_compressible, 4000, 4000, 10, 0.001}}.
1321

1422
{riakc_pb_ips, [{127,0,0,1}]}.
1523

1624
{riakc_pb_replies, 1}.
1725

1826
%%% {operations, [{get, 1}]}.
19-
{operations, [{get, 1}, {update, 1}]}.
27+
{operations, [{get, 5}, {update, 1}]}.
2028

2129
%% Use {auto_reconnect, false} to get "old" behavior (prior to April 2013).
2230
%% See deps/riakc/src/riakc_pb_socket.erl for all valid socket options.
@@ -29,8 +37,8 @@
2937
%% specified.
3038

3139
{pb_timeout_general, 30000}.
32-
{pb_timeout_read, 5000}.
33-
{pb_timeout_write, 5000}.
34-
{pb_timeout_listkeys, 50000}.
40+
{pb_timeout_read, 10000}.
41+
{pb_timeout_write, 10000}.
42+
{pb_timeout_listkeys, 3600000}.
3543
%% The general timeout will be used because this specific item is commented:
3644
%% {pb_timeout_mapreduce, 50000}.

examples/riakc_pb_listkeys.config

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{mode, max}.
2+
3+
{duration, 300}.
4+
{report_interval, 300}.
5+
6+
{concurrent, 1}.
7+
8+
{driver, basho_bench_driver_riakc_pb}.
9+
10+
{key_generator,
11+
{concat_binary,
12+
{base64,
13+
{int_to_bin_bigendian,
14+
{pareto_int, 200000000}
15+
}
16+
},
17+
<<>>}
18+
}.
19+
20+
{value_generator, {semi_compressible, 4000, 8000}}.
21+
22+
{riakc_pb_ips, [{127,0,0,1}]}.
23+
24+
{riakc_pb_replies, 1}.
25+
26+
%%% {operations, [{get, 1}]}.
27+
{operations, [{pause_minute, 4}, {listkeys, 1}]}.
28+
29+
%% Use {auto_reconnect, false} to get "old" behavior (prior to April 2013).
30+
%% See deps/riakc/src/riakc_pb_socket.erl for all valid socket options.
31+
{pb_connect_options, [{auto_reconnect, true}]}.
32+
33+
%% Overrides for the PB client's default 60 second timeout, on a
34+
%% per-type-of-operation basis. All timeout units are specified in
35+
%% milliseconds. The pb_timeout_general config item provides a
36+
%% default timeout if the read/write/listkeys/mapreduce timeout is not
37+
%% specified.
38+
39+
{pb_timeout_general, 30000}.
40+
{pb_timeout_read, 10000}.
41+
{pb_timeout_write, 10000}.
42+
{pb_timeout_listkeys, 3600000}.
43+
%% The general timeout will be used because this specific item is commented:
44+
%% {pb_timeout_mapreduce, 50000}.

0 commit comments

Comments
 (0)