File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,15 +4,21 @@ NoSQL Database lab
44This is a collection of ready-to-go experiments with databases.
55
66Every database has a Hello World setup with
7- [ Docker compose] ( https://docs.docker.com/compose/ ) to run on any OS.
7+ [ Docker compose] ( https://docs.docker.com/compose/ ) to run on any OS,
8+ usually in a distributed (multi-host) fashion.
9+ Start any database with:
10+ ` docker-compose up `
11+
12+ Some databases might need to scale to multiple nodes (` --scale node=N ` ).
13+
814All databases have some example scripts that try to highlight some of the
915strengths and peculiarities:
1016
11- - ` ./propagate.sh ` : (big) data generation, to have some data
12- - ` ./aggregate.sh ` : perform some exemplar aggregation on the data
17+ - ` docker-compose run scripts ./propagate.sh` : (big) data generation, to have some data
18+ - ` docker-compose run scripts ./aggregate.sh` : perform some exemplar aggregation on the data
1319
1420Read the corresponding README for the database for specific instructions.
1521
16- This database lab was inspired by the "7 Databases in 7 Weeks" book, but has
17- grown in database scope since then . I tried to pin all Docker containers to
22+ This database lab was inspired by the "7 Databases in 7 Weeks" book, but will
23+ grow in database scope over time . I tried to pin all Docker containers to
1824specific versions; feel free to update or expand the examples where desired!
Original file line number Diff line number Diff line change 11Start with:
22
3- docker-compose up -d --scale member =5
3+ docker-compose up -d --scale node =5
44
55See status with:
66
7- docker-compose exec member riak-admin cluster status
7+ docker-compose exec node riak-admin cluster status
88
99Run scripts with:
1010
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ services:
1818 volumes :
1919 - schemas:/etc/riak/schemas
2020 - data:/var/lib/riak # persistent; remove for ephemeral tasks
21- member : # additional nodes (docker-compose scale member =N)
21+ node : # additional nodes (docker-compose scale node =N)
2222 image : basho/riak-kv:ubuntu-2.1.4
2323 ports :
2424 - " 8087"
You can’t perform that action at this time.
0 commit comments