https://github.com/fmpwizard/distributed-dbs
https://github.com/fmpwizard/distributed-dbs
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/fmpwizard/distributed-dbs
- Owner: fmpwizard
- Created: 2017-09-16T23:31:03.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-16T23:32:48.000Z (almost 9 years ago)
- Last Synced: 2025-10-27T23:14:23.304Z (8 months ago)
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Init system
### Install python:
ansible-playbook init.yml -i hosts/vm -u diego --ask-become-pass
### Install mongodb
ansible-playbook dev.yml --tags mongodb --ask-become-pass -i hosts/vm
Then run these on the primary you are selecting: (change ip addresses for hostnames)
```
rs.initiate( {
_id : "mongo-repl-set",
members: [ { _id : 0, host : "192.168.2.102:27017" } ]
})
rs.add("192.168.2.103")
rs.add("192.168.2.104")
```
### installing CockroachDB
*I'm sure there is a better way than running 3 diff tags, will look into it later*
ansible-playbook --tags cockroachdb --ask-become-pass -i hosts/vm dev.yml
ansible-playbook --tags cockroachdb-primary --ask-become-pass -i hosts/vm dbservers-seed.yml
ansible-playbook --tags cockroachdb-secondary --ask-become-pass -i hosts/vm dbservers-non-seed.yml
### Installing Couchbase community 4.x
ansible-playbook dbservers.yml --tags couchbase --ask-sudo-pass -i hosts/vm
ansible-playbook dbservers.yml --tags couchbase --ask-sudo-pass -i hosts/vm
**Yes, run it twice, the first one will fail due to some systemd error but the second run will complete, Couchbase 5.0 will support Ubuntu 16.04 officially**
Go to http://:8091 and follow the prompts to setup the cluster.
Then go to the other nodes, same port and **join** the cluster setup on the previous step (use the same user/pass to join as defined on prev step)