Provides a Docker environment which implements two riak clusters and configures replication between them.
Bring the environment up with docker-compose
. Running in detached mode puts the sandbox in the background. Utilizes a current Riak Docker image built on amazonlinux... abtreece/riak-kv
$ docker-compose up -d
Creating network "riak-repl-in-a-box_default" with the default driver
Creating riak-repl-in-a-box_coordinator-west_1 ... done
Creating riak-repl-in-a-box_coordinator-east_1 ... done
Creating riak-repl-in-a-box_member-west_1 ... done
Creating riak-repl-in-a-box_member-east_1 ... done
Riak status
$ curl localhost:8098/stats | jq
{
"connected_nodes": [
"[email protected]"
],
...
"ring_members": [
"[email protected]",
"[email protected]"
],
"ring_num_partitions": 64,
"ring_ownership": "[{'[email protected]',32},{'[email protected]',32}]",
Replication status
$ curl localhost:8098/riak-repl/stats | jq
{
"realtime_enabled": "riak-west-1",
"realtime_started": "riak-west-1",
"fullsync_enabled": "riak-west-1",
"fullsync_running": "",
"cluster_name": "riak-east-1",
"cluster_leader": "[email protected]",
"connected_clusters": [
"riak-west-1"
],