Load 10Mb of data into /tmp/foo
:
sudo dd if=/dev/disk0 of=/tmp/foo bs=1m count=10
Start loading it into dev1 node
for i in `seq 1 10000`
do curl -XPUT "http://localhost:10018/buckets/food3/keys/ooopp$i" -d@/tmp/foo
## Caveats | |
1. The CN on the `Generate a Key and CSR for Riak Node` The CN section of the subject must match the FQDN of the server, or the certificate verification will fail. A wildcard (or SANs) may be used to avoid generating different certificates for different nodes (Particularly helpful when behind a load balancer). | |
1. If you are using your local machine to check/test add to /etc/hosts the node name | |
2. Note that a Mac machine uses an old version of OpenSSL (could be checked using `openssl version`) it will have problems with the generated certificates | |
1. Generated working certificates using Ubuntu with OpenSSL version OpenSSL 1.0.1f 6 Jan 2014. | |
2. In Mac, upgrading SSL and changing the symlink to point to the homebrew version works fine. Homebrew installed OpenSSL 1.0.2e 3 Dec 2015 works. | |
3. When testing with a browser, you WILL need to confirm the security exception. | |
4. Make sure that you disable the listener.http.internal and enable `listener.https.internal` on the Riak config. | |
5. Please e |
Load 10Mb of data into /tmp/foo
:
sudo dd if=/dev/disk0 of=/tmp/foo bs=1m count=10
Start loading it into dev1 node
for i in `seq 1 10000`
do curl -XPUT "http://localhost:10018/buckets/food3/keys/ooopp$i" -d@/tmp/foo
[url "https://github.com/"] | |
insteadOf = git://github.com/ | |
insteadOf = git@github.com: | |
insteadOf = gh: | |
insteadOf = github: | |
[url "https://github.com/standard-analytics/"] | |
insteadOf = sa: | |
[url "https://git.apache.org/repos/asf/"] | |
insteadOf = apache: | |
[url "https://github.com/strmpnk/"] |
<URL "http://localhost:8098/stats"> | |
Instance "riak" | |
<Key "converge_delay_last"> | |
Type "gauge"" | |
</Key> | |
<Key "converge_delay_max"> | |
Type "gauge"" | |
</Key> | |
<Key "converge_delay_mean"> | |
Type "gauge"" |
Hostname "ubuntu-12" | |
FQDNLookup true | |
BaseDir "/var/lib/collectd" | |
PIDFile "/var/run/collectd.pid" | |
PluginDir "/usr/local/lib/collectd" | |
TypesDB "/usr/local/share/collectd/types.db" | |
# LoadPlugin syslog | |
# <Plugin syslog> | |
# LogLevel info |
This is a purely in-browser demo of Riak 2.0's sets datatype. The application code uses React.js and jquery.
To get started, make a 5-node devrel
cluster of the 2.0 preview using these instructions. After your cluster is built, make a bucket-type for sets:
cd dev/dev1
bin/riak-admin bucket-type create sets '{"props":{"datatype":"set","allow_mult":true}}'
bin/riak-admin bucket-type activate sets
# Documentation for HAProxy | |
# http://code.google.com/p/haproxy-docs/w/list | |
# http://haproxy.1wt.eu/download/1.2/doc/architecture.txt | |
# NOTES: | |
# open files limits need to be > 256000, use ulimit -n to set (on most POSIX systems) | |
global | |
log 127.0.0.1 local0 | |
log 127.0.0.1 local1 notice |
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
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)