Skip to content

Commit a11f41a

Browse files
committed
Readme updated (notes on scaling)
1 parent ec7e953 commit a11f41a

3 files changed

Lines changed: 14 additions & 8 deletions

File tree

README.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,21 @@ NoSQL Database lab
44
This is a collection of ready-to-go experiments with databases.
55

66
Every 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+
814
All databases have some example scripts that try to highlight some of the
915
strengths 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

1420
Read 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
1824
specific versions; feel free to update or expand the examples where desired!

riak/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
Start with:
22

3-
docker-compose up -d --scale member=5
3+
docker-compose up -d --scale node=5
44

55
See status with:
66

7-
docker-compose exec member riak-admin cluster status
7+
docker-compose exec node riak-admin cluster status
88

99
Run scripts with:
1010

riak/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)