Skip to content

Commit 57e133a

Browse files
committed
New NHS load test
General load test. Sort of somewhere between the demands of all three functional domain clusters. Also included is a passive version, designed to be a relatively unchallenging passive-site load (for providing load under cluster admin tests).
1 parent 0f42622 commit 57e133a

2 files changed

Lines changed: 96 additions & 0 deletions

File tree

examples/riakc_nhs_general.config

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{mode, max}.
2+
3+
{duration, 1440}.
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, {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, 651}, {alwaysget_updatewith2i, 120},
30+
{put_unique, 95}, {get_unique, 130},
31+
{postcodequery_http, 3}, {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_nhs_passive.config

Lines changed: 48 additions & 0 deletions
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}.

0 commit comments

Comments
 (0)