- Download a branch of Riak that contains RJ dependencies in
rebar.config, and startup changes inreltool.config - Run
make relclean && make rel - Start Riak
- Least manual commands and configuration
| {mode, max}. | |
| {duration, 10}. | |
| {report_interval,1}. | |
| {concurrent, 10}. | |
| {driver, basho_bench_driver_riakc_pb}. | |
| {key_generator, {int_to_bin_bigendian, {sequential_int, 10000}}}. |
| echo "session required pam_limits.so" >> /etc/pam.d/common-session' |
| %% -*- mode: erlang;erlang-indent-level: 4;indent-tabs-mode: nil -*- | |
| %% ex: ft=erlang ts=4 sw=4 et | |
| [ | |
| %% Riak Client APIs config | |
| {riak_api, [ | |
| %% pb_backlog is the maximum length to which the queue of pending | |
| %% connections may grow. If set, it must be an integer >= 0. | |
| %% By default the value is 5. If you anticipate a huge number of | |
| %% connections being initialised *simultaneously*, set this number | |
| %% higher. |
The goal of a time-series API on Riak is to provide a reusable solution to a common problem faced by customers. The problem at a high level is that there is currently no built-in way to fetch more than one Riak object given start and end parameters.
The API should at minimum expose a way to easily store individual events as well as a way to query for multiple events given start and end times.
| {mode, max}. | |
| % Setup: | |
| % curl -i -XPUT http://localhost:8098/search/index/my_index | |
| % riak-admin bucket-type create maps '{"props":{"search_index":"my_index","datatype":"map"}}' | |
| % riak-admin bucket-type activate maps | |
| {duration, 1}. | |
| {concurrent, 1}. |
| % curl -i -XPUT http://localhost:8098/search/index/my_index | |
| % riak-admin bucket-type create maps '{"props":{"search_index":"my_index","datatype":"map"}}' | |
| % riak-admin bucket-type activate maps | |
| {mode, max}. | |
| {duration, 1}. | |
| {concurrent, 1}. | |
| {mode, max}. | |
| {duration, 1}. | |
| {concurrent, 1}. | |
| {driver, basho_bench_driver_http}. | |
| {key_generator, {int_to_str, {uniform_int, 50000}}}. | |
| {value_generator, {fixed_bin, 10000}}. |
| result=`curl -o /dev/null -w "time: "%{time_total}" status:"%{http_code} -k -s -H "Authorization: $auth_header" -H "Content-Type: application/octet-stream" -H "Date: $header_date" -XPUT --proxy1.0 http://10.80.83.68:8077 http://sl.basho.com:80$path -T ./files/$filenumber` | |
| echo $result >> stats.txt |