https://github.com/abtreece/riak-repl-in-a-box
Docker sandbox for tinkering with Riak clusters and replication
https://github.com/abtreece/riak-repl-in-a-box
docker docker-compose riak riak-kv
Last synced: 3 months ago
JSON representation
Docker sandbox for tinkering with Riak clusters and replication
- Host: GitHub
- URL: https://github.com/abtreece/riak-repl-in-a-box
- Owner: abtreece
- Created: 2018-09-13T16:29:45.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-05-31T02:19:21.000Z (about 2 years ago)
- Last Synced: 2025-04-04T14:44:10.002Z (over 1 year ago)
- Topics: docker, docker-compose, riak, riak-kv
- Language: Shell
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
riak-repl-in-a-box
==============
Provides a Docker environment which implements two riak clusters and configures replication between them.
Requirements
------------
- [docker](https://www.docker.com/get-docker)
Quick Start
-----------
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](https://hub.docker.com/r/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": [
"riak@172.20.0.5"
],
...
"ring_members": [
"riak@172.20.0.3",
"riak@172.20.0.5"
],
"ring_num_partitions": 64,
"ring_ownership": "[{'riak@172.20.0.3',32},{'riak@172.20.0.5',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": "riak@172.20.0.5",
"connected_clusters": [
"riak-west-1"
],
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~