Useful but not complete: https://ghc.haskell.org/trac/ghc/wiki/Building/Preparation/Illumos
pkgin up
pkgin in build-essential ghc
Useful but not complete: https://ghc.haskell.org/trac/ghc/wiki/Building/Preparation/Illumos
pkgin up
pkgin in build-essential ghc
Entry point for all object operations: https://github.com/basho/riak_kv/blob/1.4.2/src/riak_kv_wm_object.erl
delete_resource/2 takes RequestData(Request header, ex: vclock) and Context(Record containing: Bucket, Key, Client): https://github.com/basho/riak_kv/blob/1.4.2/src/riak_kv_wm_object.erl#L888
-module(bitcask_merge). | |
-export([merge_dirs/0]). | |
bitcask_data_dir() -> | |
bitcask_data_dir(application:get_env(riak_kv, multi_backend), | |
application:get_env(bitcask, data_root)). | |
bitcask_data_dir(undefined, undefined) -> | |
undefined; |
When you build Erlang/OTP on OS X, it unfortunately defaults to handling a maximum of 1024 file descriptors. You can get around this limitation with the right combination of configuration options and manual changes to a generated config file.
First, go into your unpacked Erlang/OTP source directory and run the following command, replacing the value 10000 with whatever value you want for max file descriptors:
perl -i -pe 's/(define\s+FD_SETSIZE\s+)\d+/\1 10000/' erts/config.h.in
Next, when you run configure
in your Erlang/OTP source directory, be sure to include the right CFLAGS
setting, as shown below:
CFLAGS='-DREDEFINE_FD_SETSIZE -DFD_SETSIZE=15000 -D_DARWIN_UNLIMITED_SELECT' ./configure --enable-kernel-poll <other options>
%% Get the state for the local node | |
%% The get_my_ring function really returns the ring | |
%% plus other state information about the cluster. | |
{ok, State} = riak_core_ring_manager:get_my_ring(). | |
%% Get number of partitions | |
riak_core_ring:num_partitions(State). | |
%% Get the names of custom buckets | |
riak_core_ring:get_buckets(State). |
# Index some documents... | |
curl -v -X PUT \ | |
-d 'data1' \ | |
-H "Content-Type: application/json" \ | |
-H "x-riak-index-field1_bin: val1" \ | |
-H "x-riak-index-field2_int: 1001" \ | |
http://127.0.0.1:8098/riak/mybucket/mykey1 | |
curl -v -X PUT \ |