$ make build
DOCKER_RIAK_CLUSTER_SIZE
– The number of nodes in your Riak cluster (default:5
)DOCKER_RIAK_AUTOMATIC_CLUSTERING
– A flag to automatically cluster Riak (default:false
)DOCKER_RIAK_DEBUG
– A flag toset -x
on the cluster management scripts (default:false
)DOCKER_RIAK_BASE_HTTP_PORT
- A flag to use fixed port assignment. If set, manually forward portDOCKER_RIAK_BASE_HTTP_PORT + $index
to8098
(Riak's HTTP port) and forwardDOCKER_RIAK_BASE_HTTP_PORT + $index + DOCKER_RIAK_PROTO_BUF_PORT_OFFSET
to8087
(Riak's Protocol Buffers port).DOCKER_RIAK_PROTO_BUF_PORT_OFFSET
- Optional port offset (default:100
)DOCKER_RIAK_BACKEND
- Optional Riak backend to use (default:bitcask
)DOCKER_RIAK_STRONG_CONSISTENCY
- Enables strong consistency subsystem (values:on
oroff
, default:off
)
$ DOCKER_RIAK_AUTOMATIC_CLUSTERING=1 DOCKER_RIAK_CLUSTER_SIZE=5 DOCKER_RIAK_BACKEND=leveldb make start-cluster
./bin/start-cluster.sh
Bringing up cluster nodes:
Starting riak01..... Completed
Starting riak02..... Completed
Starting riak03..... Completed
Starting riak04..... Completed
Starting riak05..... Completed
Please wait approximately 30 seconds for the cluster to stabilize.
Together, these attributes let us know that this particular Riak node knows about all of the other Riak instances.
$ make stop-cluster
./bin/stop-cluster.sh
Stopped all of the running containers.
$ make remove-cluster
./bin/remove-cluster.sh
Stopped the cluster and cleared all of the running containers.