curl -i -XPUT http://localhost:8098/search/index/my_index
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{mode, max}. | |
{duration, 10}. | |
{report_interval,1}. | |
{concurrent, 10}. | |
{driver, basho_bench_driver_riakc_pb}. | |
{key_generator, {int_to_bin_bigendian, {sequential_int, 10000}}}. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "session required pam_limits.so" >> /etc/pam.d/common-session' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%% -*- 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{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}. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -XPOST http://localhost:8098/types/location_type/buckets/people/datatypes/person1 \ | |
-H "Content-Type: application/json" \ | |
-d ' | |
{ | |
"update": { "username_register": "user1", "city_register": "Denver", "state_register": "NY", "position_register": "42.27,-74.53" } | |
}' | |
curl -XPOST http://localhost:8098/types/location_type/buckets/people/datatypes/person2 \ | |
-H "Content-Type: application/json" \ | |
-d ' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% 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}. | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{mode, max}. | |
{duration, 1}. | |
{concurrent, 1}. | |
{driver, basho_bench_driver_http}. | |
{key_generator, {int_to_str, {uniform_int, 50000}}}. | |
{value_generator, {fixed_bin, 10000}}. |